Skip to content

Emitter usage

Usage

  1. Via the command line
Terminal window
tsp compile . --emit=@typespec/http-client-js
  1. Via the config
emit:
- "@typespec/http-client-js"

The config can be extended with options as follows:

emit:
- "@typespec/http-client-js"
options:
"@typespec/http-client-js":
option: value

Emitter options

package-name

Type: string

Name of the package as it will be in package.json