import { TypeChecker } from "https://deno.land/x/deno2node@v1.10.0/src/deps.deno.ts";
Wrapper around the TypeChecker.
Methods
Gets the aliased symbol of a symbol.
Gets the ambient module symbols (ex. modules in the
Gets the apparent type of a type.
Gets the base type of a literal type.
For example, for a number literal type it will return the number type.
Gets the constant value of a declaration.
Gets the contextual type of an expression.
Gets the declared type of a symbol.
Gets the exports of a module.
Gets the local target symbol of the provided export specifier.
Gets the export symbol of a local symbol with a corresponding export symbol. Otherwise returns the input symbol.
The following is from the compiler API documentation:
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.
Gets the fully qualified name of a symbol.
Follow a single alias to get the immediately aliased symbol.
Gets the properties of a type.
Gets the resolved signature from a node or returns undefined if the signature can't be resolved.
Gets the resolved signature from a node or throws if the signature cannot be resolved.
Gets the return type of a signature.
Gets a signature from a node.
Gets the symbol at the specified location or undefined if none exists.
Gets the symbols in the scope of the provided node.
Note: This will always return the local symbols. If you want the export symbol from a local symbol, then
use the #getExportSymbolOfSymbol(symbol)
method.
Gets the type arguments from a type reference.
Gets the type at the specified location.
Gets the type of a symbol at the specified location.
Gets the type text