Skip to content

Usage of newly added Typescript API generateTypesForModule #28546

@shrinktofit

Description

@shrinktofit

I noticed that in commit 40bd7c8 , the ts.generateTypesForModule and ts.generateTypesForGlobal is added as Typescript API.

According #26588, does this API provide a way to generate .d.ts file from JsDoc-typed JavaScript file? If so, how to use it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Domain: APIRelates to the public API for TypeScriptQuestionAn issue which isn't directly actionable in code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions