File tree Expand file tree Collapse file tree
packages/runtime-core/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,28 +20,19 @@ type DiscriminatedInstrument<
2020 : never
2121 : never ;
2222
23- /** @public */
24- type LegacyInstrumentProperties = {
25- details : {
26- estimatedDuration ?: never ;
27- instructions ?: never ;
28- } ;
29- } ;
30-
3123/** @public */
3224type InstrumentDef <
3325 TKind extends InstrumentKind ,
3426 TLanguage extends InstrumentLanguage ,
3527 TSchema extends z . ZodTypeAny
36- > = LegacyInstrumentProperties &
37- Omit <
38- DiscriminatedInstrument < TKind , TLanguage , z . TypeOf < TSchema > > ,
39- '__runtimeVersion' | 'kind' | 'language' | 'validationSchema'
40- > & {
41- kind : TKind ;
42- language : TLanguage ;
43- validationSchema : TSchema ;
44- } ;
28+ > = Omit <
29+ DiscriminatedInstrument < TKind , TLanguage , z . TypeOf < TSchema > > ,
30+ '__runtimeVersion' | 'kind' | 'language' | 'validationSchema'
31+ > & {
32+ kind : TKind ;
33+ language : TLanguage ;
34+ validationSchema : TSchema ;
35+ } ;
4536
4637/** @public */
4738export declare function defineInstrument <
You can’t perform that action at this time.
0 commit comments