Eased type constraints of studio.selection*
This commit is contained in:
parent
3c00645e40
commit
dcf90983a5
1 changed files with 5 additions and 3 deletions
|
@ -256,12 +256,14 @@ export interface IStudio {
|
||||||
*
|
*
|
||||||
* You can read the current selection from studio.selection
|
* You can read the current selection from studio.selection
|
||||||
*/
|
*/
|
||||||
setSelection(selection: Array<ISheetObject | ISheet>): void
|
setSelection(selection: Array<ISheetObject<any> | ISheet>): void
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Calls fn every time the current selection changes.
|
* Calls fn every time the current selection changes.
|
||||||
*/
|
*/
|
||||||
onSelectionChange(fn: (s: Array<ISheetObject | ISheet>) => void): VoidFunction
|
onSelectionChange(
|
||||||
|
fn: (s: Array<ISheetObject<{}> | ISheet>) => void,
|
||||||
|
): VoidFunction
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The current selection, consisting of Sheets and Sheet Objects
|
* The current selection, consisting of Sheets and Sheet Objects
|
||||||
|
@ -271,7 +273,7 @@ export interface IStudio {
|
||||||
* console.log(studio.selection) // => [ISheetObject, ISheet]
|
* console.log(studio.selection) // => [ISheetObject, ISheet]
|
||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
readonly selection: Array<ISheetObject | ISheet>
|
readonly selection: Array<ISheetObject<{}> | ISheet>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Registers an extension
|
* Registers an extension
|
||||||
|
|
Loading…
Reference in a new issue