diff --git a/phet-types.d.ts b/phet-types.d.ts index 0acba268..39c2d56b 100644 --- a/phet-types.d.ts +++ b/phet-types.d.ts @@ -8,7 +8,14 @@ declare var assert: undefined | ( ( x: any, s?: string ) => void ); declare var phet: any; -// Placeholder for scenery node options until we can use TypeScript in common code +// Placeholder until we can use TypeScript in common code +type PhetioObjectOptions = { + tandem: Tandem, + phetioDynamicElement: boolean, + phetioType: IOType +}; + +// Placeholder until we can use TypeScript in common code declare type NodeOptions = { children: Node[], @@ -69,7 +76,7 @@ declare type NodeOptions = { touchArea: Bounds2 | Shape | null, clipArea: Shape | null, transformBounds: boolean, -}; +} & PhetioObjectOptions; // Placeholder until we can use TypeScript in common code class ObservableArray extends Array { @@ -93,15 +100,10 @@ class ObservableArray extends Array { clear() {} } -// Placeholder until we can use TypeScript in common code -type PhetioObjectOptions = { - tandem: Tandem, - phetioDynamicElement: boolean, - phetioType: IOType -}; - // Placeholder until we can use TypeScript in common code type AccordionBoxOptions = { titleAlignX: 'left' | 'right' | 'center', titleXSpacing: number -}; \ No newline at end of file +} & NodeOptions; + +type CheckboxOptions = {} & NodeOptions; \ No newline at end of file