defineInstrument
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
>>