Skip to content

[I] EmitContext

Type Parameters

Type ParameterDefault type
TOptions extends objectRecord<string, never>

Properties

PropertyTypeDescription
emitterOutputDirstringConfigured output dir for the emitter. Emitter should emit all output under that directory.
optionsTOptionsEmitter custom options defined in createTypeSpecLibrary
programProgramTypeSpec Program.

Methods

getAssetEmitter()

getAssetEmitter<T>(TypeEmitterClass): AssetEmitter<T, TOptions>

Get an asset emitter to write emitted output to disk using a TypeEmitter

Type Parameters

Type Parameter
T

Parameters

ParameterTypeDescription
TypeEmitterClasstypeof TypeEmitterThe TypeEmitter to construct your emitted output

Returns

AssetEmitter<T, TOptions>

Deprecated

call createAssetEmitter directly instead.