Emitter usage
- Via the command line
tsp compile . --emit=@azure-tools/typespec-ts
- 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
Emitter options
Section titled “Emitter options”emitter-output-dir
Section titled “emitter-output-dir”Type: absolutePath
Defines the emitter output directory. Defaults to {output-dir}/@azure-tools/typespec-ts
See Configuring output directory for more info
include-shortcuts
Section titled “include-shortcuts”Type: boolean
multi-client
Section titled “multi-client”Type: boolean
Type: array
package-details
Section titled “package-details”Type: object
add-credentials
Section titled “add-credentials”Type: boolean
credential-scopes
Section titled “credential-scopes”Type: array
credential-key-header-name
Section titled “credential-key-header-name”Type: string
custom-http-auth-header-name
Section titled “custom-http-auth-header-name”Type: string
custom-http-auth-shared-key-prefix
Section titled “custom-http-auth-shared-key-prefix”Type: string
generate-metadata
Section titled “generate-metadata”Type: boolean
generate-test
Section titled “generate-test”Type: boolean
generate-sample
Section titled “generate-sample”Type: boolean
azure-sdk-for-js
Section titled “azure-sdk-for-js”Type: boolean
azure-output-directory
Section titled “azure-output-directory”Type: string
is-typespec-test
Section titled “is-typespec-test”Type: boolean
Type: string
dependency-info
Section titled “dependency-info”Type: object
product-doc-link
Section titled “product-doc-link”Type: string
service-info
Section titled “service-info”Type: object
azure-arm
Section titled “azure-arm”Type: boolean
source-from
Section titled “source-from”Type: string
is-modular-library
Section titled “is-modular-library”Type: boolean
enable-operation-group
Section titled “enable-operation-group”Type: boolean
enable-model-namespace
Section titled “enable-model-namespace”Type: boolean
hierarchy-client
Section titled “hierarchy-client”Type: boolean
branded
Section titled “branded”Type: boolean
Type: string
module-kind
Section titled “module-kind”Type: "esm" | "cjs"
compatibility-mode
Section titled “compatibility-mode”Type: boolean
experimental-extensible-enums
Section titled “experimental-extensible-enums”Type: boolean
clear-output-folder
Section titled “clear-output-folder”Type: boolean
ignore-property-name-normalize
Section titled “ignore-property-name-normalize”Type: boolean
ignore-enum-member-name-normalize
Section titled “ignore-enum-member-name-normalize”Type: boolean
compatibility-query-multi-format
Section titled “compatibility-query-multi-format”Type: boolean
default-value-object
Section titled “default-value-object”Type: boolean
typespec-title-map
Section titled “typespec-title-map”Type: object
should-use-pnpm-dep
Section titled “should-use-pnpm-dep”Type: boolean