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 11/// <reference types="../../../runtime/v1/global.d.ts" />
22
3+ import type { ApprovedLicense } from '@opendatacapture/licenses' ;
34import type { z } from 'zod' ;
45
56import type { InstrumentKind , InstrumentLanguage } from './types/instrument.base.js' ;
@@ -11,9 +12,6 @@ declare global {
1112 interface OpenDataCaptureContext { }
1213}
1314
14- /** @public */
15- export type IsOpenDataCaptureRepo = OpenDataCaptureContext [ 'isRepo' ] ;
16-
1715/** @public */
1816// prettier-ignore
1917export type DiscriminatedInstrument <
@@ -42,7 +40,13 @@ export type InstrumentDef<
4240 kind : TKind ;
4341 language : TLanguage ;
4442 validationSchema : TSchema ;
45- } ;
43+ } & ( OpenDataCaptureContext extends { isRepo : true }
44+ ? {
45+ details : {
46+ license : ApprovedLicense ;
47+ } ;
48+ }
49+ : unknown ) ;
4650
4751/** @public */
4852export function defineInstrument <
You can’t perform that action at this time.
0 commit comments