mirror of
https://github.com/mathuo/dockview
synced 2025-05-02 09:38: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;
|
||||
}
|
||||
|
||||
export interface IDockviewPanelProps<T extends {} = Record<string, any>>
|
||||
export interface IDockviewPanelProps<T extends { [index: string]: any } = any>
|
||||
extends IGroupPanelBaseProps<T> {
|
||||
// noop
|
||||
}
|
||||
|
@ -15,7 +15,7 @@ export interface GridviewReadyEvent {
|
||||
api: GridviewApi;
|
||||
}
|
||||
|
||||
export interface IGridviewPanelProps<T extends {} = Record<string, any>>
|
||||
export interface IGridviewPanelProps<T extends { [index: string]: any } = any>
|
||||
extends PanelParameters<T> {
|
||||
api: GridviewPanelApi;
|
||||
containerApi: GridviewApi;
|
||||
|
@ -15,7 +15,7 @@ export interface PaneviewReadyEvent {
|
||||
api: PaneviewApi;
|
||||
}
|
||||
|
||||
export interface IPaneviewPanelProps<T extends {} = Record<string, any>>
|
||||
export interface IPaneviewPanelProps<T extends { [index: string]: any } = any>
|
||||
extends PanelParameters<T> {
|
||||
api: PaneviewPanelApi;
|
||||
containerApi: PaneviewApi;
|
||||
|
@ -15,7 +15,7 @@ export interface SplitviewReadyEvent {
|
||||
api: SplitviewApi;
|
||||
}
|
||||
|
||||
export interface ISplitviewPanelProps<T extends {} = any>
|
||||
export interface ISplitviewPanelProps<T extends { [index: string]: any } = any>
|
||||
extends PanelParameters<T> {
|
||||
api: SplitviewPanelApi;
|
||||
containerApi: SplitviewApi;
|
||||
|
Loading…
Reference in New Issue
Block a user