Skip to main content
Module

x/ts_morph/ts_morph.d.ts>TypeChecker#getExportSymbolOfSymbol

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
method TypeChecker.prototype.getExportSymbolOfSymbol
import { TypeChecker } from "https://deno.land/x/ts_morph@15.1.0/ts_morph.d.ts";

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.