diff --git a/theatre/studio/src/TheatreStudio.ts b/theatre/studio/src/TheatreStudio.ts index 6f0db06..d56dc27 100644 --- a/theatre/studio/src/TheatreStudio.ts +++ b/theatre/studio/src/TheatreStudio.ts @@ -256,12 +256,14 @@ export interface IStudio { * * You can read the current selection from studio.selection */ - setSelection(selection: Array): void + setSelection(selection: Array | ISheet>): void /** * Calls fn every time the current selection changes. */ - onSelectionChange(fn: (s: Array) => void): VoidFunction + onSelectionChange( + fn: (s: Array | ISheet>) => void, + ): VoidFunction /** * The current selection, consisting of Sheets and Sheet Objects @@ -271,7 +273,7 @@ export interface IStudio { * console.log(studio.selection) // => [ISheetObject, ISheet] * ``` */ - readonly selection: Array + readonly selection: Array | ISheet> /** * Registers an extension