Skip to main content
Version: Next 🚧

[I] TypeSpecLibraryDef

Extended by

Type Parameters

Type ParameterDefault type
T extends object-
E extends Record<string, any>Record<string, never>
State extends stringnever

Properties

PropertyModifierTypeDescription
diagnosticsreadonlyDiagnosticMap<T>Map of potential diagnostics that can be emitted in this library where the key is the diagnostic code.
emitter?readonlyobjectEmitter configuration if library is an emitter.
emitter.options?publicJSONSchemaType<E>-
linter?readonlyLinterDefinitionConfiguration if library is providing linting rules/rulesets. Deprecated Use export const $linter instead. This will cause circular reference with linters.
namereadonlystringLibrary name. MUST match package.json name.
requireImports?readonlyreadonly string[]List of other library that should be imported when this is used as an emitter. Compiler will emit an error if the libraries are not explicitly imported.
state?readonlyRecord<State, StateDef>-