Aller au contenu

defineInstrument

Ce contenu n’est pas encore disponible dans votre langue.

defineInstrument<TKind, TLanguage, TSchema>(def): DiscriminatedInstrument<TKind, TLanguage, z.TypeOf<TSchema>>

Type Parameters

TKind extends InstrumentKind

TLanguage extends InstrumentLanguage

TSchema extends ZodTypeAny

Parameters

def: InstrumentDef<TKind, TLanguage, TSchema>

Returns

DiscriminatedInstrument<TKind, TLanguage, z.TypeOf<TSchema>>

Defined in

packages/runtime-core/src/define.d.ts:34