@expressive/mvc 0.21.0 → 0.21.1
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/lib/index.d.ts +1 -17
- package/lib/index.esm.js +1 -1
- package/lib/index.js +0 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
declare namespace Issue {
|
|
2
|
-
type Variable = {} | string | number | boolean | null | undefined;
|
|
3
|
-
type Variables<T> = T extends (...args: infer T) => any ? T : never;
|
|
4
|
-
type Messages = {
|
|
5
|
-
[named: string]: (...args: Variable[]) => string;
|
|
6
|
-
};
|
|
7
|
-
type Output<M extends Messages> = {
|
|
8
|
-
readonly [P in keyof M]: (...args: Variables<M[P]>) => Issue;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
declare class Issue extends Error {
|
|
12
|
-
stack: string;
|
|
13
|
-
warn(): void;
|
|
14
|
-
}
|
|
15
|
-
declare function issues<M extends Issue.Messages>(register: M): Issue.Output<M>;
|
|
16
|
-
|
|
17
1
|
type Async<T = any> = (...args: any[]) => Promise<T>;
|
|
18
2
|
/**
|
|
19
3
|
* Sets an exotic method with managed ready-state. Property accepts an async function.
|
|
@@ -413,4 +397,4 @@ declare class Context {
|
|
|
413
397
|
pop(): void;
|
|
414
398
|
}
|
|
415
399
|
|
|
416
|
-
export { Context, Control, Debug, Model, Model as default, get,
|
|
400
|
+
export { Context, Control, Debug, Model, Model as default, get, ref, run, set, use };
|
package/lib/index.esm.js
CHANGED
package/lib/index.js
CHANGED
package/package.json
CHANGED