Skip to content

Commit a9a8049

Browse files
committed
refactor: add edition to instrument info
1 parent ceb0818 commit a9a8049

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/schemas/src/instrument/instrument.base.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,12 +174,16 @@ const $UnilingualScalarInstrument = $ScalarInstrument.extend({
174174
*/
175175
type InstrumentInfo<T extends BaseInstrument = BaseInstrument> = Omit<T, 'content'> & {
176176
id: string;
177+
internal?: {
178+
edition: number;
179+
};
177180
};
181+
178182
const $InstrumentInfo = $BaseInstrument
179183
.omit({
180184
content: true
181185
})
182-
.extend({ id: z.string() }) satisfies z.ZodType<InstrumentInfo>;
186+
.extend({ id: z.string(), internal: $ScalarInstrumentInternal.optional() }) satisfies z.ZodType<InstrumentInfo>;
183187

184188
/** @internal */
185189
type UnilingualInstrumentInfo = Simplify<InstrumentInfo<BaseInstrument<Language>>>;

0 commit comments

Comments
 (0)