deno.com

interface Module.StripTypeScriptTypesOptions

Properties #

#mode:
"strip"
| "transform"
| undefined
optional

Possible values are:

  • 'strip' Only strip type annotations without performing the transformation of TypeScript features.
  • 'transform' Strip type annotations and transform TypeScript features to JavaScript.
#sourceMap: boolean | undefined
optional

Only when mode is 'transform', if true, a source map will be generated for the transformed code.

#sourceUrl: string | undefined
optional

Specifies the source url used in the source map.