refactor(app.tsx): move Portal to new file and some refactoring (#1398)

This commit is contained in:
Aakansha Doshi 2020-04-12 16:24:52 +05:30 committed by GitHub
parent 6abcb2d87f
commit 227ff60909
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 78 additions and 61 deletions

View file

@ -8,6 +8,7 @@ import {
} from "./element/types";
import { SHAPES } from "./shapes";
import { Point as RoughPoint } from "roughjs/bin/geometry";
import { SocketUpdateDataSource } from "./data";
export type FlooredNumber = number & { _brand: "FlooredNumber" };
export type Point = Readonly<RoughPoint>;
@ -82,3 +83,7 @@ export declare class GestureEvent extends UIEvent {
readonly rotation: number;
readonly scale: number;
}
export type SocketUpdateData = SocketUpdateDataSource[keyof SocketUpdateDataSource] & {
_brand: "socketUpdateData";
};