Bun

interface

module.default.StripTypeScriptTypesOptions

interface StripTypeScriptTypesOptions

  • mode?: 'strip' | 'transform'

    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

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

  • sourceUrl?: string

    Specifies the source url used in the source map.