[I] EmitContext
Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
TOptions extends object | Record<string, never> |
Properties
Section titled “Properties”| Property | Modifier | Type | Description |
|---|---|---|---|
emitterOutputDir | public | string | Configured output dir for the emitter. Emitter should emit all output under that directory. |
options | public | TOptions | Emitter custom options defined in createTypeSpecLibrary |
perf | readonly | PerfReporter | Performance measurement utilities. Use this to report performance of areas of your emitter. The information will be displayed when the compiler is run with --stats flag. |
program | public | Program | TypeSpec Program. |