mnemonica 0.9.944 → 0.9.945
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const stackCleaners: RegExp[];
|
|
2
2
|
export declare const cleanupStack: (stack: string[]) => string[];
|
|
3
|
-
export declare const getStack: (this: any, title: string, stackAddition: string[], tillFunction?: CallableFunction
|
|
3
|
+
export declare const getStack: (this: any, title: string, stackAddition: string[], tillFunction?: CallableFunction) => any;
|
|
4
4
|
export declare class BASE_MNEMONICA_ERROR extends Error {
|
|
5
5
|
constructor(message: string | undefined, additionalStack: string[]);
|
|
6
6
|
}
|
package/build/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { TypeAbsorber, ITypeClass, TypeLookup, IDEF } from './types';
|
|
|
2
2
|
export type { IDEF } from './types';
|
|
3
3
|
export declare const defaultTypes: any;
|
|
4
4
|
export declare const define: TypeAbsorber;
|
|
5
|
-
export declare const tsdefine: <T>(this: any, TypeName: string, constructHandler: IDEF<T>, proto?: object
|
|
5
|
+
export declare const tsdefine: <T>(this: any, TypeName: string, constructHandler: IDEF<T>, proto?: object, config?: object) => ITypeClass<T>;
|
|
6
6
|
export declare const lookup: TypeLookup;
|
|
7
7
|
export declare const mnemonica: {
|
|
8
8
|
[index: string]: unknown;
|
package/build/types/index.d.ts
CHANGED
|
@@ -3,21 +3,21 @@ export interface ConstructorFunction<ConstructorInstance extends object> {
|
|
|
3
3
|
(this: ConstructorInstance, ...args: any[]): ConstructorInstance;
|
|
4
4
|
prototype: ConstructorInstance;
|
|
5
5
|
}
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
6
|
+
export type TypeModificator<T extends object> = (...args: any[]) => ConstructorFunction<T>;
|
|
7
|
+
export type TypeLookup = (this: Map<string, any>, TypeNestedPath: string) => TypeClass;
|
|
8
|
+
export type TypeClass = {
|
|
9
9
|
new (...args: any[]): any;
|
|
10
10
|
define: TypeAbsorber;
|
|
11
11
|
lookup: TypeLookup;
|
|
12
12
|
registerHook: (type: 'preCreation' | 'postCreation' | 'creationError', hook: CallableFunction) => any;
|
|
13
13
|
};
|
|
14
|
-
export
|
|
15
|
-
export
|
|
14
|
+
export type TypeAbsorber = (this: any, TypeName: string, constructHandler: CallableFunction, proto?: object, config?: object) => TypeClass;
|
|
15
|
+
export type IDEF<T> = {
|
|
16
16
|
new (...args: any[]): T;
|
|
17
17
|
(this: T, ...args: any[]): T;
|
|
18
18
|
prototype?: ThisType<T>;
|
|
19
19
|
};
|
|
20
|
-
export
|
|
20
|
+
export type ITypeAbsorber<T> = (this: any, TypeName: string, constructHandler: IDEF<T>, proto?: object, config?: object) => ITypeClass<T>;
|
|
21
21
|
export interface ITypeClass<T> {
|
|
22
22
|
new (...args: any[]): T;
|
|
23
23
|
(this: T, ...args: any[]): T;
|