We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ceb0818 commit a9a8049Copy full SHA for a9a8049
packages/schemas/src/instrument/instrument.base.ts
@@ -174,12 +174,16 @@ const $UnilingualScalarInstrument = $ScalarInstrument.extend({
174
*/
175
type InstrumentInfo<T extends BaseInstrument = BaseInstrument> = Omit<T, 'content'> & {
176
id: string;
177
+ internal?: {
178
+ edition: number;
179
+ };
180
};
181
+
182
const $InstrumentInfo = $BaseInstrument
183
.omit({
184
content: true
185
})
- .extend({ id: z.string() }) satisfies z.ZodType<InstrumentInfo>;
186
+ .extend({ id: z.string(), internal: $ScalarInstrumentInternal.optional() }) satisfies z.ZodType<InstrumentInfo>;
187
188
/** @internal */
189
type UnilingualInstrumentInfo = Simplify<InstrumentInfo<BaseInstrument<Language>>>;
0 commit comments