// https://stackoverflow.com/questions/56018167/typescript-does-not-copy-d-ts-files-to-build export type WithNull = T | null; export type WithUndef = T | undefined; export type Optional = Omit & Partial>; export type Requireal = Omit & Required>; declare global { interface Window { MSPointerEvent: any opera: any DocumentTouch: any } interface CanvasRenderingContext2D { isHitTesting: boolean; isClip: boolean; isMultiClip: boolean; dpr: number; lineColorIn: any; lineStrokeColor: any; lineStrokeWidth:any; } }