refactor(defaultProps): dont set defaults in main entry point

This commit is contained in:
moklick
2020-10-02 14:34:51 +02:00
parent 0bf4ec86b6
commit 48053133e5
5 changed files with 147 additions and 137 deletions
+3 -1
View File
@@ -32,6 +32,8 @@ export interface Box extends XYPosition {
y2: number;
}
export type SnapGrid = [number, number];
export interface Node {
id: ElementId;
position: XYPosition;
@@ -214,7 +216,7 @@ export interface WrapNodeProps {
isHidden?: boolean;
isInitialized?: boolean;
snapToGrid?: boolean;
snapGrid?: [number, number];
snapGrid?: SnapGrid;
isDragging?: boolean;
}