Skip to content

Commit ccb3e8c

Browse files
committed
Added delay
1 parent b34ac27 commit ccb3e8c

File tree

4 files changed

+2303
-1680
lines changed

4 files changed

+2303
-1680
lines changed

umd.d.ts

Lines changed: 216 additions & 167 deletions
Original file line numberDiff line numberDiff line change
@@ -1,167 +1,216 @@
1-
declare namespace Reflect {
2-
function decorate(decorators: ClassDecorator[], target: Function): Function;
3-
function decorate(decorators: (PropertyDecorator | MethodDecorator)[], target: any, propertyKey: string | symbol, attributes?: PropertyDescriptor | null): PropertyDescriptor | undefined;
4-
function decorate(decorators: (PropertyDecorator | MethodDecorator)[], target: any, propertyKey: string | symbol, attributes: PropertyDescriptor): PropertyDescriptor;
5-
function metadata(metadataKey: any, metadataValue: any): {
6-
(target: Function): void;
7-
(target: any, propertyKey: string | symbol): void;
8-
};
9-
function defineMetadata(metadataKey: any, metadataValue: any, target: any): void;
10-
function defineMetadata(metadataKey: any, metadataValue: any, target: any, propertyKey: string | symbol): void;
11-
function hasMetadata(metadataKey: any, target: any): boolean;
12-
function hasMetadata(metadataKey: any, target: any, propertyKey: string | symbol): boolean;
13-
function hasOwnMetadata(metadataKey: any, target: any): boolean;
14-
function hasOwnMetadata(metadataKey: any, target: any, propertyKey: string | symbol): boolean;
15-
function getMetadata(metadataKey: any, target: any): any;
16-
function getMetadata(metadataKey: any, target: any, propertyKey: string | symbol): any;
17-
function getOwnMetadata(metadataKey: any, target: any): any;
18-
function getOwnMetadata(metadataKey: any, target: any, propertyKey: string | symbol): any;
19-
function getMetadataKeys(target: any): any[];
20-
function getMetadataKeys(target: any, propertyKey: string | symbol): any[];
21-
function getOwnMetadataKeys(target: any): any[];
22-
function getOwnMetadataKeys(target: any, propertyKey: string | symbol): any[];
23-
function deleteMetadata(metadataKey: any, target: any): boolean;
24-
function deleteMetadata(metadataKey: any, target: any, propertyKey: string | symbol): boolean;
25-
}
26-
interface IPackage {
27-
name: string;
28-
version: string;
29-
url: string;
30-
type: "amd" | "global";
31-
exportVar?: string;
32-
}
33-
interface IRequireFunction {
34-
(path: string): any;
35-
resolve?: (path: string) => string;
36-
}
37-
declare class Module {
38-
readonly name: string;
39-
readonly folder?: string;
40-
private static nextID;
41-
previous: Module;
42-
next: Module;
43-
package: IPackage;
44-
emptyExports: any;
45-
dependencyHooks: [(...a: any) => void, () => void];
46-
resolveHooks: [(...a: any) => void, () => void];
47-
dynamicImports: MockType[];
48-
get url(): string;
49-
exports: any;
50-
isLoaded: boolean;
51-
isResolved: boolean;
52-
require: IRequireFunction;
53-
dependencies: Module[];
54-
type: "amd" | "global";
55-
exportVar: string;
56-
factory: (r: any, e: any) => void;
57-
loader: Promise<any>;
58-
postExports: () => void;
59-
get filename(): string;
60-
importPromise: Promise<any>;
61-
resolver: Promise<any>;
62-
private rID;
63-
constructor(name: string, folder?: string);
64-
addDependency(d: Module): void;
65-
getExports(): any;
66-
isDependentOn(m: Module, visited?: Set<string>): boolean;
67-
}
68-
declare var require: any;
69-
declare var md: any;
70-
declare const promiseDone: Promise<number>;
71-
declare class AmdLoader {
72-
static isMedia: RegExp;
73-
static isJson: RegExp;
74-
static globalVar: any;
75-
static moduleProgress: (name: string, modules: Map<string, Module>, status: "done" | "loading") => void;
76-
static moduleLoader: (packageName: string, url: string, success: () => void, failed: (error: any) => void) => void;
77-
static httpTextLoader: (url: string, resolve: (r: any) => void, failed: (error: any) => void) => void;
78-
static instance: AmdLoader;
79-
static current: Module;
80-
root: Module;
81-
defaultUrl: string;
82-
currentStack: Module[];
83-
nodeModules: Module[];
84-
modules: Map<string, Module>;
85-
pathMap: Map<string, IPackage>;
86-
enableMock: boolean;
87-
define: any;
88-
private mockTypes;
89-
register(packages: string[], modules: string[]): void;
90-
setupRoot(root: string, url: string): void;
91-
registerModule(name: string, moduleExports: {
92-
[key: string]: any;
93-
}): void;
94-
setup(name: string): void;
95-
replace(type: any, name: string, mock: boolean): void;
96-
resolveType(type: any): any;
97-
map(packageName: string, packageUrl: string, type?: ("amd" | "global"), exportVar?: string): IPackage;
98-
resolveSource(name: string, defExt?: string): string;
99-
resolveRelativePath(name: string, currentPackage: string): string;
100-
getPackageVersion(name: string): ({
101-
packageName: string;
102-
version: string;
103-
name: string;
104-
});
105-
get(name1: string): Module;
106-
import(name: string | Module): Promise<any>;
107-
importAsync(module: Module): Promise<any>;
108-
resolve(module: Module): Promise<any>;
109-
load(module: Module): Promise<any>;
110-
}
111-
declare var global: any;
112-
declare const a: AmdLoader;
113-
type IAnyFunction = (...a: any[]) => any;
114-
interface IDefine {
115-
(requiresOrFactory: string[] | IAnyFunction, factory?: IAnyFunction): any;
116-
amd?: object;
117-
}
118-
declare var define: IDefine;
119-
declare class MockType {
120-
readonly module: Module;
121-
type: any;
122-
name: string;
123-
mock: boolean;
124-
moduleName?: string;
125-
readonly exportName?: string;
126-
replaced: any;
127-
replacedModule: Module;
128-
constructor(module: Module, type: any, name: string, mock: boolean, moduleName?: string, exportName?: string);
129-
}
130-
interface IContext {
131-
import(name: string): Promise<any>;
132-
}
133-
type IImportDef = (e: any) => void;
134-
type IExportDef = (name: any, value: any) => void;
135-
type ISetup = () => void | Promise<void>;
136-
type IModuleSetup = (exports: IExportDef, context: IContext) => IModule;
137-
interface IModule {
138-
setters: IImportDef[];
139-
execute: ISetup;
140-
}
141-
declare const merge: (target: any, source: any) => void;
142-
declare class System {
143-
static import(name: any): Promise<any>;
144-
static register(imports: string[], setup: IModuleSetup): any;
145-
static register(name: string, imports: string[], setup: IModuleSetup): any;
146-
}
147-
declare class UMDClass {
148-
viewPrefix: string;
149-
defaultApp: string;
150-
lang: string;
151-
nameSymbol: string | symbol;
152-
get mock(): boolean;
153-
set mock(v: boolean);
154-
resolvePath(n: string): string;
155-
resolveViewPath(path: string): string;
156-
resolveType(type: any): any;
157-
map(name: string, path: string, type?: ("amd" | "global"), exportVar?: string): void;
158-
setupRoot(name: string, url: string): void;
159-
mockType(type: any, name: string): void;
160-
inject(type: any, name: string): void;
161-
resolveViewClassAsync(path: string): Promise<any>;
162-
import(path: string): Promise<any>;
163-
load(path: string, designMode?: boolean): Promise<any>;
164-
hostView(id: string, path: string, designMode?: boolean): Promise<any>;
165-
loadView(path: string, designMode?: boolean, appPath?: string): Promise<any>;
166-
}
167-
declare const UMD: UMDClass;
1+
declare function setupTSLib(): {
2+
__extends: any;
3+
__assign: any;
4+
__rest: any;
5+
__decorate: any;
6+
__param: any;
7+
__esDecorate: any;
8+
__runInitializers: any;
9+
__propKey: any;
10+
__setFunctionName: any;
11+
__metadata: any;
12+
__awaiter: any;
13+
__generator: any;
14+
__exportStar: any;
15+
__values: any;
16+
__read: any;
17+
__spread: any;
18+
__spreadArrays: any;
19+
__spreadArray: any;
20+
__await: any;
21+
__asyncGenerator: any;
22+
__asyncDelegator: any;
23+
__asyncValues: any;
24+
__makeTemplateObject: any;
25+
__importStar: any;
26+
__importDefault: any;
27+
__classPrivateFieldGet: any;
28+
__classPrivateFieldSet: any;
29+
__classPrivateFieldIn: any;
30+
__createBinding: any;
31+
__addDisposableResource: any;
32+
__disposeResources: any;
33+
};
34+
declare namespace Reflect {
35+
function decorate(decorators: ClassDecorator[], target: Function): Function;
36+
function decorate(decorators: (PropertyDecorator | MethodDecorator)[], target: any, propertyKey: string | symbol, attributes?: PropertyDescriptor | null): PropertyDescriptor | undefined;
37+
function decorate(decorators: (PropertyDecorator | MethodDecorator)[], target: any, propertyKey: string | symbol, attributes: PropertyDescriptor): PropertyDescriptor;
38+
function metadata(metadataKey: any, metadataValue: any): {
39+
(target: Function): void;
40+
(target: any, propertyKey: string | symbol): void;
41+
};
42+
function defineMetadata(metadataKey: any, metadataValue: any, target: any): void;
43+
function defineMetadata(metadataKey: any, metadataValue: any, target: any, propertyKey: string | symbol): void;
44+
function hasMetadata(metadataKey: any, target: any): boolean;
45+
function hasMetadata(metadataKey: any, target: any, propertyKey: string | symbol): boolean;
46+
function hasOwnMetadata(metadataKey: any, target: any): boolean;
47+
function hasOwnMetadata(metadataKey: any, target: any, propertyKey: string | symbol): boolean;
48+
function getMetadata(metadataKey: any, target: any): any;
49+
function getMetadata(metadataKey: any, target: any, propertyKey: string | symbol): any;
50+
function getOwnMetadata(metadataKey: any, target: any): any;
51+
function getOwnMetadata(metadataKey: any, target: any, propertyKey: string | symbol): any;
52+
function getMetadataKeys(target: any): any[];
53+
function getMetadataKeys(target: any, propertyKey: string | symbol): any[];
54+
function getOwnMetadataKeys(target: any): any[];
55+
function getOwnMetadataKeys(target: any, propertyKey: string | symbol): any[];
56+
function deleteMetadata(metadataKey: any, target: any): boolean;
57+
function deleteMetadata(metadataKey: any, target: any, propertyKey: string | symbol): boolean;
58+
}
59+
declare const currentModuleSymbol: unique symbol;
60+
interface IPackage {
61+
name: string;
62+
version: string;
63+
url: string;
64+
type: "amd" | "global";
65+
exportVar?: string;
66+
}
67+
interface IRequireFunction {
68+
(path: string | string[], resolve?: any, reject?: any): any;
69+
resolve?: (path: string) => string;
70+
}
71+
declare class Module {
72+
readonly name: string;
73+
readonly folder?: string;
74+
private static nextID;
75+
previous: Module;
76+
next: Module;
77+
package: IPackage;
78+
emptyExports: any;
79+
packed: boolean;
80+
dependencyHooks: [(...a: any) => void, () => void];
81+
resolveHooks: [(...a: any) => void, () => void];
82+
dynamicImports: MockType[];
83+
get url(): string;
84+
get meta(): {
85+
url: string;
86+
resolve: (path: string) => string;
87+
};
88+
exports: any;
89+
isLoaded: boolean;
90+
isResolved: boolean;
91+
require: IRequireFunction;
92+
dependencies: Module[];
93+
type: "amd" | "global";
94+
exportVar: string;
95+
factory: (r: any, e: any) => void;
96+
loader: Promise<any>;
97+
postExports: () => void;
98+
get filename(): string;
99+
importPromise: Promise<any>;
100+
resolver: () => Promise<any>;
101+
setup: IModuleSetup;
102+
private rID;
103+
constructor(name: string, folder?: string);
104+
import(name: string): Promise<any>;
105+
addDependency(d: Module): void;
106+
getExports(): any;
107+
isDependentOn(m: Module, visited?: Set<Module>): boolean;
108+
}
109+
declare var require: any;
110+
declare var md: any;
111+
declare const promiseDone: Promise<number>;
112+
declare class AmdLoader {
113+
static isMedia: RegExp;
114+
static isCss: RegExp;
115+
static isJson: RegExp;
116+
static globalVar: any;
117+
static moduleProgress: (name: string, modules: Map<string, Module>, status: "done" | "loading") => void;
118+
static moduleLoader: (packageName: string, url: string, success: () => void, failed: (error: any) => void) => void;
119+
static httpTextLoader: (url: string, resolve: (r: any) => void, failed: (error: any) => void) => void;
120+
static instance: AmdLoader;
121+
static current: Module;
122+
root: Module;
123+
defaultUrl: string;
124+
currentStack: Module[];
125+
nodeModules: Module[];
126+
modules: Map<string, Module>;
127+
pathMap: Map<string, IPackage>;
128+
enableMock: boolean;
129+
define: any;
130+
private mockTypes;
131+
register(packages: string[], modules: string[]): void;
132+
setupRoot(root: string, url: string): void;
133+
registerModule(name: string, moduleExports: {
134+
[key: string]: any;
135+
}): void;
136+
setup(name: string): void;
137+
replace(type: any, name: string, mock: boolean): void;
138+
resolveType(type: any): any;
139+
map(packageName: string, packageUrl: string, type?: ("amd" | "global"), exportVar?: string): IPackage;
140+
resolveSource(name: string, defExt?: string): string;
141+
resolveRelativePath(name: string, currentPackage: string): string;
142+
getPackageVersion(name: string): ({
143+
packageName: string;
144+
version: string;
145+
name: string;
146+
});
147+
get(name1: string): Module;
148+
import(name: string | Module): Promise<any>;
149+
importNodeModule(module: Module): Promise<any>;
150+
importAsync(module: Module): Promise<any>;
151+
resolve(module: Module): Promise<any>;
152+
load(module: Module): Promise<any>;
153+
}
154+
declare var global: any;
155+
declare const a: AmdLoader;
156+
declare var amdConfig: any;
157+
type IAnyFunction = (...a: any[]) => any;
158+
interface IDefine {
159+
(requiresOrFactory: string[] | IAnyFunction, factory?: IAnyFunction): any;
160+
amd?: object;
161+
}
162+
declare var define: IDefine;
163+
declare class MockType {
164+
readonly module: Module;
165+
type: any;
166+
name: string;
167+
mock: boolean;
168+
moduleName?: string;
169+
readonly exportName?: string;
170+
replaced: any;
171+
replacedModule: Module;
172+
constructor(module: Module, type: any, name: string, mock: boolean, moduleName?: string, exportName?: string);
173+
}
174+
interface IContext {
175+
import(name: string): Promise<any>;
176+
}
177+
type IImportDef = (e: any) => void;
178+
type IExportDef = (name: any, value: any) => void;
179+
type ISetup = () => void | Promise<void>;
180+
type IModuleSetup = (exports: IExportDef, context: IContext) => IModule;
181+
interface IModule {
182+
setters: IImportDef[];
183+
execute: ISetup;
184+
}
185+
declare const merge: (target: any, source: any) => void;
186+
declare const enumerable = true, configurable = true;
187+
declare class System {
188+
static resolve(id: any): string;
189+
static import(name: any): Promise<any>;
190+
static register(imports: string[], setup: IModuleSetup): any;
191+
static register(name: string, imports: string[], setup: IModuleSetup): any;
192+
}
193+
declare const globalNS: any;
194+
declare class UMDClass {
195+
debug: boolean;
196+
viewPrefix: string;
197+
defaultApp: string;
198+
lang: string;
199+
nameSymbol: string | symbol;
200+
get mock(): boolean;
201+
set mock(v: boolean);
202+
resolvePath(n: string): string;
203+
resolveViewPath(path: string): string;
204+
resolveType(type: any): any;
205+
map(name: string, path: string, type?: ("amd" | "global"), exportVar?: string): void;
206+
setupRoot(name: string, url: string): void;
207+
mockType(type: any, name: string): void;
208+
inject(type: any, name: string): void;
209+
resolveViewClassAsync(path: string): Promise<any>;
210+
import(path: string): Promise<any>;
211+
load(path: string, designMode?: boolean): Promise<any>;
212+
hostView(id: string | HTMLElement, path: string, designMode?: boolean): Promise<any>;
213+
loadView(path: string, designMode?: boolean, appPath?: string): Promise<any>;
214+
installStyleSheet(path: string, imports?: {}): void;
215+
}
216+
declare const UMD: UMDClass;

0 commit comments

Comments
 (0)