[Init]Init commit

This commit is contained in:
kenyeh
2023-05-19 17:13:53 +08:00
parent f670fe1a11
commit 10690ac902
135 changed files with 59831 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
export interface IEqualsComparer<T> {
(a: T, b: T): boolean;
}
declare function identityComparer(a: any, b: any): boolean;
declare function structuralComparer(a: any, b: any): boolean;
declare function shallowComparer(a: any, b: any): boolean;
declare function defaultComparer(a: any, b: any): boolean;
export declare const comparer: {
identity: typeof identityComparer;
structural: typeof structuralComparer;
default: typeof defaultComparer;
shallow: typeof shallowComparer;
};
export {};
@@ -0,0 +1,5 @@
{
"ver": "2.0.0",
"uuid": "6bc63ec0-afa0-430d-8f19-f51cfd6d788a",
"subMetas": {}
}
+1
View File
@@ -0,0 +1 @@
export declare function deepEqual(a: any, b: any, depth?: number): boolean;
@@ -0,0 +1,5 @@
{
"ver": "2.0.0",
"uuid": "0ee281b6-48ef-40c3-ad96-6078a6672d15",
"subMetas": {}
}
+1
View File
@@ -0,0 +1 @@
export declare function getGlobal(): any;
@@ -0,0 +1,5 @@
{
"ver": "2.0.0",
"uuid": "d81c6f2c-0566-44a8-9856-27497801d925",
"subMetas": {}
}
+1
View File
@@ -0,0 +1 @@
export declare function makeIterable<T>(iterator: Iterator<T>): IterableIterator<T>;
@@ -0,0 +1,5 @@
{
"ver": "2.0.0",
"uuid": "4524da62-f78d-4dfd-9a3d-0a3036e6ce7d",
"subMetas": {}
}
+45
View File
@@ -0,0 +1,45 @@
export declare const assign: {
<T, U>(target: T, source: U): T & U;
<T_1, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 & U_1 & V;
<T_2, U_2, V_1, W>(target: T_2, source1: U_2, source2: V_1, source3: W): T_2 & U_2 & V_1 & W;
(target: object, ...sources: any[]): any;
};
export declare const getDescriptor: (o: any, p: string | number | symbol) => PropertyDescriptor | undefined;
export declare const defineProperty: (o: any, p: string | number | symbol, attributes: PropertyDescriptor & ThisType<any>) => any;
export declare const objectPrototype: Object;
export declare const EMPTY_ARRAY: never[];
export declare const EMPTY_OBJECT: {};
export interface Lambda {
(): void;
name?: string;
}
export declare function assertProxies(): void;
export declare function warnAboutProxyRequirement(msg: string): void;
export declare function getNextId(): number;
/**
* Makes sure that the provided function is invoked at most once.
*/
export declare function once(func: Lambda): Lambda;
export declare const noop: () => void;
export declare function isFunction(fn: any): fn is Function;
export declare function isString(value: any): value is string;
export declare function isStringish(value: any): value is string | number | symbol;
export declare function isObject(value: any): value is Object;
export declare function isPlainObject(value: any): boolean;
export declare function isGenerator(obj: any): boolean;
export declare function addHiddenProp(object: any, propName: PropertyKey, value: any): void;
export declare function addHiddenFinalProp(object: any, propName: PropertyKey, value: any): void;
export declare function createInstanceofPredicate<T>(name: string, theClass: new (...args: any[]) => T): (x: any) => x is T;
export declare function isES6Map(thing: any): boolean;
export declare function isES6Set(thing: any): thing is Set<any>;
/**
* Returns the following: own enumerable keys and symbols.
*/
export declare function getPlainObjectKeys(object: any): (string | symbol)[];
export declare const ownKeys: (target: any) => PropertyKey[];
export declare function stringifyKey(key: any): string;
export declare function toPrimitive(value: any): any;
export declare function hasProp(target: Object, prop: PropertyKey): boolean;
export declare const getOwnPropertyDescriptors: <T>(o: T) => { [P in keyof T]: TypedPropertyDescriptor<T[P]>; } & {
[x: string]: PropertyDescriptor;
};
@@ -0,0 +1,5 @@
{
"ver": "2.0.0",
"uuid": "b5a51edd-92c4-4928-9054-11a2640c7bee",
"subMetas": {}
}