@confect/core 1.0.0-next.4 → 1.0.0
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/CHANGELOG.md +6 -0
- package/dist/GroupSpec.d.ts +6 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/GroupSpec.d.ts
CHANGED
|
@@ -8,20 +8,20 @@ declare namespace GroupSpec_d_exports {
|
|
|
8
8
|
declare const TypeId = "@confect/core/GroupSpec";
|
|
9
9
|
type TypeId = typeof TypeId;
|
|
10
10
|
declare const isGroupSpec: (u: unknown) => u is Any;
|
|
11
|
-
interface GroupSpec<Runtime$
|
|
11
|
+
interface GroupSpec<Runtime$1 extends Runtime, Name_ extends string, Functions_ extends AnyWithPropsWithRuntime$1<Runtime$1> = never, Groups_ extends AnyWithPropsWithRuntime<Runtime$1> = never> {
|
|
12
12
|
readonly [TypeId]: TypeId;
|
|
13
|
-
readonly runtime: Runtime$
|
|
13
|
+
readonly runtime: Runtime$1;
|
|
14
14
|
readonly name: Name_;
|
|
15
|
-
readonly functions: { [FunctionName in Name$1<AnyWithPropsWithRuntime$1<Runtime$
|
|
15
|
+
readonly functions: { [FunctionName in Name$1<AnyWithPropsWithRuntime$1<Runtime$1>>]: WithName$1<Functions_, FunctionName> };
|
|
16
16
|
readonly groups: { [GroupName in Name<Groups_>]: WithName<Groups_, GroupName> };
|
|
17
|
-
addFunction<Function extends AnyWithPropsWithRuntime$1<Runtime$
|
|
18
|
-
addGroup<Group extends AnyWithPropsWithRuntime<Runtime$
|
|
17
|
+
addFunction<Function extends AnyWithPropsWithRuntime$1<Runtime$1>>(function_: Function): GroupSpec<Runtime$1, Name_, Functions_ | Function, Groups_>;
|
|
18
|
+
addGroup<Group extends AnyWithPropsWithRuntime<Runtime$1>>(group: Group): GroupSpec<Runtime$1, Name_, Functions_, Groups_ | Group>;
|
|
19
19
|
}
|
|
20
20
|
interface Any {
|
|
21
21
|
readonly [TypeId]: TypeId;
|
|
22
22
|
}
|
|
23
23
|
interface AnyWithProps extends GroupSpec<Runtime, string, AnyWithProps$1, AnyWithProps> {}
|
|
24
|
-
interface AnyWithPropsWithRuntime<Runtime$
|
|
24
|
+
interface AnyWithPropsWithRuntime<Runtime$2 extends Runtime> extends GroupSpec<Runtime$2, string, AnyWithPropsWithRuntime$1<Runtime$2>, AnyWithPropsWithRuntime<Runtime$2>> {}
|
|
25
25
|
type Name<Group extends AnyWithProps> = Group["name"];
|
|
26
26
|
type Functions<Group extends AnyWithProps> = Group["functions"][keyof Group["functions"]];
|
|
27
27
|
type Groups<Group extends AnyWithProps> = Group["groups"][keyof Group["groups"]];
|