Skip to content

Language Service API review #2899

Closed
Closed
@basarat

Description

@basarat

I just updated to latest. Would like API equivalents for the following:

ts.typeToDisplayParts
ts.getTokenAtPosition
sourceFile.getNamedDeclarations

Error log:

/fixmyts/addClassMember.ts(5,31): error TS2305: Module '"typescript"' has no exported member 'typeToDisplayParts'.
/fixmyts/equalsToEquals.ts(5,31): error TS2305: Module '"typescript"' has no exported member 'typeToDisplayParts'.
/fixmyts/quoteToTemplate.ts(5,31): error TS2305: Module '"typescript"' has no exported member 'typeToDisplayParts'.
/fixmyts/quotesToQuotes.ts(5,31): error TS2305: Module '"typescript"' has no exported member 'typeToDisplayParts'.
/projectService.ts(736,38): error TS2339: Property 'getNamedDeclarations' does not exist on type 'SourceFile'.
/projectService.ts(922,36): error TS2339: Property 'getTokenAtPosition' does not exist on type 'typeof "typescript"'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    APIRelates to the public API for TypeScriptBugA bug in TypeScriptWon't FixThe severity and priority of this issue do not warrant the time or complexity needed to fix it

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions