@servicenow/sdk - v4.4.1
    Preparing search index...
    interface TypeChecker {
        getIndexInfosOfIndexSymbol: (indexSymbol: tsc.Symbol) => IndexInfo[];
        getAliasedSymbol(symbol: tsc.Symbol): tsc.Symbol;
        getAmbientModules(): tsc.Symbol[];
        getAnyType(): tsc.Type;
        getApparentType(type: tsc.Type): tsc.Type;
        getAugmentedPropertiesOfType(type: tsc.Type): tsc.Symbol[];
        getBaseConstraintOfType(type: tsc.Type): tsc.Type | undefined;
        getBaseTypeOfLiteralType(type: tsc.Type): tsc.Type;
        getBaseTypes(type: InterfaceType): BaseType[];
        getBigIntType(): tsc.Type;
        getBooleanType(): tsc.Type;
        getConstantValue(
            node:
                | tsc.PropertyAccessExpression
                | tsc.ElementAccessExpression
                | tsc.EnumMember,
        ): string
        | number
        | undefined;
        getContextualType(node: tsc.Expression): tsc.Type | undefined;
        getDeclaredTypeOfSymbol(symbol: tsc.Symbol): tsc.Type;
        getDefaultFromTypeParameter(type: tsc.Type): tsc.Type | undefined;
        getESSymbolType(): tsc.Type;
        getExportsOfModule(moduleSymbol: tsc.Symbol): tsc.Symbol[];
        getExportSpecifierLocalTargetSymbol(
            location: tsc.Identifier | tsc.ExportSpecifier,
        ): tsc.Symbol | undefined;
        getExportSymbolOfSymbol(symbol: tsc.Symbol): tsc.Symbol;
        getFalseType(): tsc.Type;
        getFullyQualifiedName(symbol: tsc.Symbol): string;
        getImmediateAliasedSymbol(symbol: tsc.Symbol): tsc.Symbol | undefined;
        getIndexInfoOfType(type: tsc.Type, kind: IndexKind): IndexInfo | undefined;
        getIndexInfosOfType(type: tsc.Type): readonly IndexInfo[];
        getIndexTypeOfType(type: tsc.Type, kind: IndexKind): tsc.Type | undefined;
        getJsxIntrinsicTagNamesAt(location: tsc.Node): tsc.Symbol[];
        getMergedSymbol(symbol: tsc.Symbol): tsc.Symbol;
        getNeverType(): tsc.Type;
        getNonNullableType(type: tsc.Type): tsc.Type;
        getNullableType(type: tsc.Type, flags: tsc.TypeFlags): tsc.Type;
        getNullType(): tsc.Type;
        getNumberLiteralType(value: number): NumberLiteralType;
        getNumberType(): tsc.Type;
        getPrivateIdentifierPropertyOfType(
            leftType: tsc.Type,
            name: string,
            location: tsc.Node,
        ): tsc.Symbol | undefined;
        getPropertiesOfType(type: tsc.Type): tsc.Symbol[];
        getPropertyOfType(
            type: tsc.Type,
            propertyName: string,
        ): tsc.Symbol | undefined;
        getPropertySymbolOfDestructuringAssignment(
            location: tsc.Identifier,
        ): tsc.Symbol | undefined;
        getResolvedSignature(
            node: tsc.CallLikeExpression,
            candidatesOutArray?: tsc.Signature[],
            argumentCount?: number,
        ): tsc.Signature | undefined;
        getReturnTypeOfSignature(signature: tsc.Signature): tsc.Type;
        getRootSymbols(symbol: tsc.Symbol): readonly tsc.Symbol[];
        getShorthandAssignmentValueSymbol(
            location: tsc.Node | undefined,
        ): tsc.Symbol | undefined;
        getSignatureFromDeclaration(
            declaration: SignatureDeclaration,
        ): tsc.Signature | undefined;
        getSignaturesOfType(
            type: tsc.Type,
            kind: SignatureKind,
        ): readonly tsc.Signature[];
        getStringLiteralType(value: string): StringLiteralType;
        getStringType(): tsc.Type;
        getSymbolAtLocation(node: tsc.Node): tsc.Symbol | undefined;
        getSymbolOfExpando(
            node: tsc.Node,
            allowDeclaration: boolean,
        ): tsc.Symbol | undefined;
        getSymbolsInScope(
            location: tsc.Node,
            meaning: tsc.SymbolFlags,
        ): tsc.Symbol[];
        getSymbolsOfParameterPropertyDeclaration(
            parameter: tsc.ParameterDeclaration,
            parameterName: string,
        ): tsc.Symbol[];
        getTrueType(): tsc.Type;
        getTypeArguments(type: TypeReference): readonly tsc.Type[];
        getTypeAtLocation(node: tsc.Node): tsc.Type;
        getTypeFromTypeNode(node: tsc.TypeNode): tsc.Type;
        getTypeOfAssignmentPattern(pattern: AssignmentPattern): tsc.Type;
        getTypeOfSymbol(symbol: tsc.Symbol): tsc.Type;
        getTypeOfSymbolAtLocation(symbol: tsc.Symbol, node: tsc.Node): tsc.Type;
        getTypePredicateOfSignature(
            signature: tsc.Signature,
        ): TypePredicate | undefined;
        getUndefinedType(): tsc.Type;
        getVoidType(): tsc.Type;
        getWidenedType(type: tsc.Type): tsc.Type;
        indexInfoToIndexSignatureDeclaration(
            indexInfo: IndexInfo,
            enclosingDeclaration: tsc.Node | undefined,
            flags: NodeBuilderFlags | undefined,
        ): tsc.IndexSignatureDeclaration | undefined;
        isArgumentsSymbol(symbol: tsc.Symbol): boolean;
        isArrayLikeType(type: tsc.Type): boolean;
        isArrayType(type: tsc.Type): boolean;
        isImplementationOfOverload(node: SignatureDeclaration): boolean | undefined;
        isOptionalParameter(node: tsc.ParameterDeclaration): boolean;
        isTupleType(type: tsc.Type): boolean;
        isTypeAssignableTo(source: tsc.Type, target: tsc.Type): boolean;
        isUndefinedSymbol(symbol: tsc.Symbol): boolean;
        isUnknownSymbol(symbol: tsc.Symbol): boolean;
        isValidPropertyAccess(
            node:
                | tsc.PropertyAccessExpression
                | tsc.QualifiedName
                | tsc.ImportTypeNode,
            propertyName: string,
        ): boolean;
        resolveName(
            name: string,
            location: tsc.Node | undefined,
            meaning: tsc.SymbolFlags,
            excludeGlobals: boolean,
        ): tsc.Symbol | undefined;
        runWithCancellationToken<T>(
            token: CancellationToken,
            cb: (checker: tsc.TypeChecker) => T,
        ): T;
        signatureToSignatureDeclaration(
            signature: tsc.Signature,
            kind: tsc.SyntaxKind,
            enclosingDeclaration: tsc.Node | undefined,
            flags: NodeBuilderFlags | undefined,
        ):
            | (
                SignatureDeclaration & { typeArguments?: NodeArray<TypeNode> | undefined; }
            )
            | undefined;
        signatureToString(
            signature: tsc.Signature,
            enclosingDeclaration?: tsc.Node,
            flags?: tsc.TypeFormatFlags,
            kind?: SignatureKind,
        ): string;
        symbolToEntityName(
            symbol: tsc.Symbol,
            meaning: tsc.SymbolFlags,
            enclosingDeclaration: tsc.Node | undefined,
            flags: NodeBuilderFlags | undefined,
        ): tsc.EntityName | undefined;
        symbolToExpression(
            symbol: tsc.Symbol,
            meaning: tsc.SymbolFlags,
            enclosingDeclaration: tsc.Node | undefined,
            flags: NodeBuilderFlags | undefined,
        ): tsc.Expression | undefined;
        symbolToParameterDeclaration(
            symbol: tsc.Symbol,
            enclosingDeclaration: tsc.Node | undefined,
            flags: NodeBuilderFlags | undefined,
        ): tsc.ParameterDeclaration | undefined;
        symbolToString(
            symbol: tsc.Symbol,
            enclosingDeclaration?: tsc.Node,
            meaning?: tsc.SymbolFlags,
            flags?: SymbolFormatFlags,
        ): string;
        symbolToTypeParameterDeclarations(
            symbol: tsc.Symbol,
            enclosingDeclaration: tsc.Node | undefined,
            flags: NodeBuilderFlags | undefined,
        ): NodeArray<tsc.TypeParameterDeclaration> | undefined;
        tryGetMemberInModuleExports(
            memberName: string,
            moduleSymbol: tsc.Symbol,
        ): tsc.Symbol | undefined;
        typeParameterToDeclaration(
            parameter: tsc.TypeParameter,
            enclosingDeclaration: tsc.Node | undefined,
            flags: NodeBuilderFlags | undefined,
        ): tsc.TypeParameterDeclaration | undefined;
        typePredicateToString(
            predicate: TypePredicate,
            enclosingDeclaration?: tsc.Node,
            flags?: tsc.TypeFormatFlags,
        ): string;
        typeToString(
            type: tsc.Type,
            enclosingDeclaration?: tsc.Node,
            flags?: tsc.TypeFormatFlags,
        ): string;
        typeToTypeNode(
            type: tsc.Type,
            enclosingDeclaration: tsc.Node | undefined,
            flags: NodeBuilderFlags | undefined,
        ): tsc.TypeNode | undefined;
    }
    Index

    Properties

    Methods

    getAliasedSymbol getAmbientModules getAnyType getApparentType getAugmentedPropertiesOfType getBaseConstraintOfType getBaseTypeOfLiteralType getBaseTypes getBigIntType getBooleanType getConstantValue getContextualType getDeclaredTypeOfSymbol getDefaultFromTypeParameter getESSymbolType getExportsOfModule getExportSpecifierLocalTargetSymbol getExportSymbolOfSymbol getFalseType getFullyQualifiedName getImmediateAliasedSymbol getIndexInfoOfType getIndexInfosOfType getIndexTypeOfType getJsxIntrinsicTagNamesAt getMergedSymbol getNeverType getNonNullableType getNullableType getNullType getNumberLiteralType getNumberType getPrivateIdentifierPropertyOfType getPropertiesOfType getPropertyOfType getPropertySymbolOfDestructuringAssignment getResolvedSignature getReturnTypeOfSignature getRootSymbols getShorthandAssignmentValueSymbol getSignatureFromDeclaration getSignaturesOfType getStringLiteralType getStringType getSymbolAtLocation getSymbolOfExpando getSymbolsInScope getSymbolsOfParameterPropertyDeclaration getTrueType getTypeArguments getTypeAtLocation getTypeFromTypeNode getTypeOfAssignmentPattern getTypeOfSymbol getTypeOfSymbolAtLocation getTypePredicateOfSignature getUndefinedType getVoidType getWidenedType indexInfoToIndexSignatureDeclaration isArgumentsSymbol isArrayLikeType isArrayType isImplementationOfOverload isOptionalParameter isTupleType isTypeAssignableTo isUndefinedSymbol isUnknownSymbol isValidPropertyAccess resolveName runWithCancellationToken signatureToSignatureDeclaration signatureToString symbolToEntityName symbolToExpression symbolToParameterDeclaration symbolToString symbolToTypeParameterDeclarations tryGetMemberInModuleExports typeParameterToDeclaration typePredicateToString typeToString typeToTypeNode

    Properties

    getIndexInfosOfIndexSymbol: (indexSymbol: tsc.Symbol) => IndexInfo[]

    Methods

    • Follow all aliases to get the original symbol.

      Parameters

      Returns tsc.Symbol

    • Returns tsc.Symbol[]

    • Gets the intrinsic any type. There are multiple types that act as any used internally in the compiler, so the type returned by this function should not be used in equality checks to determine if another type is any. Instead, use type.flags & TypeFlags.Any.

      Returns tsc.Type

    • Parameters

      Returns tsc.Type

    • Parameters

      Returns tsc.Symbol[]

    • Parameters

      Returns tsc.Type | undefined

    • Parameters

      Returns tsc.Type

    • Returns tsc.Type

    • Returns tsc.Type

    • Parameters

      Returns tsc.Type | undefined

    • Parameters

      Returns tsc.Type

    • Parameters

      Returns tsc.Type | undefined

    • Returns tsc.Type

    • Parameters

      Returns tsc.Symbol[]

    • If a symbol is a local symbol with an associated exported symbol, returns the exported symbol. Otherwise returns its input. For example, at export type T = number;: - getSymbolAtLocation at the location T will return the exported symbol for T. - But the result of getSymbolsInScope will contain the local symbol for T, not the exported symbol. - Calling getExportSymbolOfSymbol on that local symbol will return the exported symbol.

      Parameters

      Returns tsc.Symbol

    • Returns tsc.Type

    • Parameters

      Returns string

    • Follow a single alias to get the immediately aliased symbol.

      Parameters

      Returns tsc.Symbol | undefined

    • Parameters

      Returns IndexInfo | undefined

    • Parameters

      Returns readonly IndexInfo[]

    • Parameters

      Returns tsc.Type | undefined

    • Parameters

      Returns tsc.Symbol[]

    • Parameters

      Returns tsc.Symbol

    • Gets the intrinsic never type. There are multiple types that act as never used internally in the compiler, so the type returned by this function should not be used in equality checks to determine if another type is never. Instead, use type.flags & TypeFlags.Never.

      Returns tsc.Type

    • Parameters

      Returns tsc.Type

    • Gets the intrinsic null type. There are multiple types that act as null used internally in the compiler, so the type returned by this function should not be used in equality checks to determine if another type is null. Instead, use type.flags & TypeFlags.Null.

      Returns tsc.Type

    • Parameters

      • value: number

      Returns NumberLiteralType

    • Returns tsc.Type

    • Parameters

      Returns tsc.Symbol | undefined

    • Parameters

      Returns tsc.Symbol[]

    • Parameters

      Returns tsc.Symbol | undefined

    • Parameters

      Returns tsc.Symbol | undefined

    • returns unknownSignature in the case of an error. returns undefined if the node is not valid.

      Parameters

      • node: tsc.CallLikeExpression
      • OptionalcandidatesOutArray: tsc.Signature[]
      • OptionalargumentCount: number

        Apparent number of arguments, passed in case of a possibly incomplete call. This should come from an ArgumentListInfo. See signatureHelp.ts.

      Returns tsc.Signature | undefined

    • Parameters

      Returns tsc.Type

    • Parameters

      Returns readonly tsc.Symbol[]

    • The function returns the value (local variable) symbol of an identifier in the short-hand property assignment. This is necessary as an identifier in short-hand property assignment can contains two meaning: property name and property value.

      Parameters

      Returns tsc.Symbol | undefined

    • Parameters

      • value: string

      Returns StringLiteralType

    • Returns tsc.Type

    • Parameters

      Returns tsc.Symbol | undefined

    • Parameters

      • node: tsc.Node
      • allowDeclaration: boolean

      Returns tsc.Symbol | undefined

    • Parameters

      Returns tsc.Symbol[]

    • Returns tsc.Type

    • Parameters

      Returns readonly tsc.Type[]

    • Parameters

      Returns tsc.Type

    • Parameters

      Returns tsc.Type

    • Parameters

      Returns tsc.Type

    • Parameters

      Returns tsc.Type

    • Parameters

      Returns TypePredicate | undefined

    • Gets the intrinsic undefined type. There are multiple types that act as undefined used internally in the compiler depending on compiler options, so the type returned by this function should not be used in equality checks to determine if another type is undefined. Instead, use type.flags & TypeFlags.Undefined.

      Returns tsc.Type

    • Returns tsc.Type

    • Parameters

      Returns tsc.Type

    • Parameters

      Returns boolean

    • True if this type is assignable to ReadonlyArray<any>.

      Parameters

      Returns boolean

    • True if this type is the Array or ReadonlyArray type from lib.d.ts. This function will not return true if passed a type which extends Array (for example, the TypeScript AST's NodeArray type).

      Parameters

      Returns boolean

    • Parameters

      Returns boolean | undefined

    • True if this type is a tuple type. This function will not return true if passed a type which extends from a tuple.

      Parameters

      Returns boolean

    • Returns true if the "source" type is assignable to the "target" type.

      declare const abcLiteral: ts.Type; // Type of "abc"
      declare const stringType: ts.Type; // Type of string

      isTypeAssignableTo(abcLiteral, abcLiteral); // true; "abc" is assignable to "abc"
      isTypeAssignableTo(abcLiteral, stringType); // true; "abc" is assignable to string
      isTypeAssignableTo(stringType, abcLiteral); // false; string is not assignable to "abc"
      isTypeAssignableTo(stringType, stringType); // true; string is assignable to string

      Parameters

      Returns boolean

    • Parameters

      Returns boolean

    • Parameters

      Returns boolean

    • Parameters

      Returns tsc.Symbol | undefined

    • Depending on the operation performed, it may be appropriate to throw away the checker if the cancellation token is triggered. Typically, if it is used for error checking and the operation is cancelled, then it should be discarded, otherwise it is safe to keep.

      Type Parameters

      • T

      Parameters

      Returns T

    • Note that the resulting nodes cannot be checked.

      Parameters

      Returns
          | (
              SignatureDeclaration & { typeArguments?: NodeArray<TypeNode> | undefined; }
          )
          | undefined

    • Parameters

      Returns tsc.Symbol | undefined

    • Parameters

      Returns string

    • Note that the resulting nodes cannot be checked.

      Parameters

      Returns tsc.TypeNode | undefined