declare var __DEV__: boolean; declare namespace NodeJS { interface Process { // webpack check readonly browser?: boolean; } interface ProcessEnv { readonly NODE_ENV: 'development' | 'production' | 'test'; } } export type AbstractConstructor = abstract new (...args: any[]) => T; export type Constructor = new (...args: any[]) => T; export type Optional = Omit & Partial>; export type PartialRequired = Partial> & Required>; /* https://github.com/total-typescript/ts-reset/blob/main/src/entrypoints/filter-boolean.d.ts https://github.com/sindresorhus/type-fest */