mnemonica 0.9.972 → 0.9.974

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.
package/build/index.d.ts CHANGED
@@ -14,7 +14,7 @@ type hook = {
14
14
  type Proto<P, T> = Pick<P, Exclude<keyof P, keyof T>> & T;
15
15
  type SN = Record<string, new () => unknown>;
16
16
  interface IDefinitorInstance<N extends object, S> {
17
- new (): {
17
+ new (...arg: unknown[]): {
18
18
  [key in keyof S]: S[key];
19
19
  };
20
20
  define: IDefinitor<N, string>;
package/build/index.js CHANGED
@@ -18,7 +18,7 @@ exports.lookup = function (TypeNestedPath) {
18
18
  const types = checkThis(this) ? exports.defaultTypes : this || exports.defaultTypes;
19
19
  return types.lookup(TypeNestedPath);
20
20
  };
21
- const apply = function (entity, Constructor, args) {
21
+ const apply = function (entity, Constructor, args = []) {
22
22
  const result = new entity[Constructor.TypeName](...args);
23
23
  return result;
24
24
  };
@@ -1,7 +1,7 @@
1
1
  export type IDEF<T> = {
2
- new (): T;
2
+ new (...args: unknown[]): T;
3
3
  } | {
4
- (this: T): void;
4
+ (this: T, ...args: unknown[]): void;
5
5
  };
6
6
  export interface ConstructorFunction<ConstructorInstance extends object> {
7
7
  new (...args: unknown[]): ConstructorInstance;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mnemonica",
3
- "version": "0.9.972",
3
+ "version": "0.9.974",
4
4
  "description": "abstract technique that aids information retention : instance inheritance system",
5
5
  "type": "commonjs",
6
6
  "main": "./build/index.js",