narraleaf-react 1.2.1 → 1.3.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.
@@ -1,5 +1,4 @@
1
1
  import { HexColor, LiveGameEventToken, NamedColor } from "../game/nlcore/types";
2
- import { ServiceHandler } from "../game/nlcore/elements/service";
3
2
  interface ITypeOf {
4
3
  DataTypes: typeof DataTypes;
5
4
  call: typeof TypeOf;
@@ -352,10 +351,6 @@ export declare class Hooks<T extends Record<string, Array<any>>> {
352
351
  trigger<K extends keyof T>(key: K, value: T[K]): VoidFunction;
353
352
  rawTrigger<K extends keyof T>(key: K, value: () => T[K]): VoidFunction;
354
353
  }
355
- type AbortifyFn<T extends any[]> = ServiceHandler<T> & {
356
- onAbort: (handler: () => void) => AbortifyFn<T>;
357
- };
358
- export declare function abortify<T extends any[]>(fn: ServiceHandler<T>): AbortifyFn<T>;
359
354
  export type FirstParam<T> = T extends (first: infer P, ...args: any[]) => any ? P : never;
360
355
  export declare class Stack<T> {
361
356
  private items;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "narraleaf-react",
3
- "version": "1.2.1",
3
+ "version": "1.3.0",
4
4
  "description": "A React visual novel player framework",
5
5
  "type": "module",
6
6
  "main": "./dist/main.js",