Skip to content

Emitter usage

  1. Via the command line
Terminal window
tsp compile . --emit=@azure-tools/typespec-ts
  1. Via the config
emit:
- "@azure-tools/typespec-ts"

The config can be extended with options as follows:

emit:
- "@azure-tools/typespec-ts"
options:
"@azure-tools/typespec-ts":
option: value

Type: absolutePath

Defines the emitter output directory. Defaults to {output-dir}/@azure-tools/typespec-ts See Configuring output directory for more info

Type: boolean

Type: boolean

Type: array

Type: object

Type: boolean

Type: array

Type: string

Type: string

Type: string

Type: boolean

Type: boolean

Type: boolean

Type: boolean

Type: string

Type: boolean

Type: string

Type: object

Type: string

Type: object

Type: boolean

Type: string

Type: boolean

Type: boolean

Type: boolean

Type: boolean

Type: boolean

Type: string

Type: "esm" | "cjs"

Type: boolean

Type: boolean

Type: boolean

Type: boolean

Type: boolean

Type: boolean

Type: boolean

Type: object

Type: boolean