Improve typing around layouts and grid components
This commit is contained in:
@@ -42,7 +42,7 @@ import { ResizeObserver as JuggleResizeObserver } from "@juggle/resize-observer"
|
||||
import styles from "./VideoGrid.module.css";
|
||||
import { Layout } from "../room/GridLayoutMenu";
|
||||
import { TileWrapper } from "./TileWrapper";
|
||||
import { Layout as LayoutSystem } from "./Layout";
|
||||
import { LayoutStatesMap } from "./Layout";
|
||||
|
||||
interface TilePosition {
|
||||
x: number;
|
||||
@@ -818,7 +818,7 @@ export interface VideoGridProps<T> {
|
||||
items: TileDescriptor<T>[];
|
||||
layout: Layout;
|
||||
disableAnimations: boolean;
|
||||
layoutStates: Map<LayoutSystem<unknown>, unknown>;
|
||||
layoutStates: LayoutStatesMap;
|
||||
children: (props: ChildrenProperties<T>) => React.ReactNode;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user