@novely/core 0.44.1 → 0.44.2
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/dist/index.d.ts +3 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -812,9 +812,9 @@ type ActionProxy<Characters extends Record<string, Character>, Languages extends
|
|
|
812
812
|
};
|
|
813
813
|
type DefaultActionProxy = ActionProxy<Record<string, Character>, Lang, State>;
|
|
814
814
|
type GetActionParameters<T extends Capitalize<keyof DefaultActionProxy>> = Parameters<DefaultActionProxy[Uncapitalize<T>]>;
|
|
815
|
-
type VirtualActions
|
|
816
|
-
choice: (question: TextContent
|
|
817
|
-
say: (character: keyof Characters, content: TextContent
|
|
815
|
+
type VirtualActions<$Characters extends Record<string, Character>, $Lang extends Lang, $State extends State> = {
|
|
816
|
+
choice: (question: TextContent<$Lang, $State>, ...choices: ActionChoiceChoiceObject<$Lang, $State>[]) => ValidAction;
|
|
817
|
+
say: (character: keyof $Characters, content: TextContent<$Lang, $State>) => ValidAction;
|
|
818
818
|
};
|
|
819
819
|
|
|
820
820
|
type ConditionParams<T> = T extends TypeEssentials<any, infer $State, any, any> ? $State : never;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@novely/core",
|
|
3
3
|
"description": "Novely - powerful visual novel engine for creating interactive stories and games with branching narratives and rich multimedia content",
|
|
4
|
-
"version": "0.44.
|
|
4
|
+
"version": "0.44.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"publishConfig": {
|