mirror of
https://github.com/mathuo/dockview
synced 2025-05-07 20:18:26 +00:00
feat: improve types for react components registry
This commit is contained in:
parent
bcb16f0fc4
commit
367db9fa40
@ -21,7 +21,7 @@ export interface IGroupPanelBaseProps<T extends {} = Record<string, any>>
|
|||||||
containerApi: DockviewApi;
|
containerApi: DockviewApi;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IDockviewPanelProps<T extends {} = Record<string, any>>
|
export interface IDockviewPanelProps<T extends { [index: string]: any } = any>
|
||||||
extends IGroupPanelBaseProps<T> {
|
extends IGroupPanelBaseProps<T> {
|
||||||
// noop
|
// noop
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,7 @@ export interface GridviewReadyEvent {
|
|||||||
api: GridviewApi;
|
api: GridviewApi;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IGridviewPanelProps<T extends {} = Record<string, any>>
|
export interface IGridviewPanelProps<T extends { [index: string]: any } = any>
|
||||||
extends PanelParameters<T> {
|
extends PanelParameters<T> {
|
||||||
api: GridviewPanelApi;
|
api: GridviewPanelApi;
|
||||||
containerApi: GridviewApi;
|
containerApi: GridviewApi;
|
||||||
|
@ -15,7 +15,7 @@ export interface PaneviewReadyEvent {
|
|||||||
api: PaneviewApi;
|
api: PaneviewApi;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IPaneviewPanelProps<T extends {} = Record<string, any>>
|
export interface IPaneviewPanelProps<T extends { [index: string]: any } = any>
|
||||||
extends PanelParameters<T> {
|
extends PanelParameters<T> {
|
||||||
api: PaneviewPanelApi;
|
api: PaneviewPanelApi;
|
||||||
containerApi: PaneviewApi;
|
containerApi: PaneviewApi;
|
||||||
|
@ -15,7 +15,7 @@ export interface SplitviewReadyEvent {
|
|||||||
api: SplitviewApi;
|
api: SplitviewApi;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ISplitviewPanelProps<T extends {} = any>
|
export interface ISplitviewPanelProps<T extends { [index: string]: any } = any>
|
||||||
extends PanelParameters<T> {
|
extends PanelParameters<T> {
|
||||||
api: SplitviewPanelApi;
|
api: SplitviewPanelApi;
|
||||||
containerApi: SplitviewApi;
|
containerApi: SplitviewApi;
|
||||||
|
Loading…
Reference in New Issue
Block a user