declare const wx: any interface Window { wx: any _czc: any onunhandledrejection: any WeixinJSBridge: any modals: any[] } interface Date { format(fmt: string): string Format(fmt: string): string } interface DateConstructor { newDate(str: string): Date formatMs(ms: number, str: string): string } interface Number { toWidth(n: number): string } interface Defer { resolve: (result: any) => void reject: (error: any) => void }