Not sure if I'm missing something but I'm getting the following error when trying to include this to one of my Angular projects.
Error: node_modules/faste/dist/es5/faste-executor.d.ts:72:76 - error TS2370: A rest parameter must be of an array type.
72 put<Message extends Exclude<Messages, MAGIC_EVENTS>>(message: Message, ...args: ExtractSignature<MessageSignatures, Message>): this;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: node_modules/faste/dist/es5/faste.d.ts:38:168 - error TS2344: Type 'ExtractMessageArgument<Message, MessageSignatures, State, Phases>' does not satisfy the constraint 'readonly any[]'.
Type 'ExtractMessageArgument<Messages, MessageSignatures, State, Phases>' is not assignable to type 'readonly any[]'.
Type 'unknown' is not assignable to type 'readonly any[]'.
38 on<Message extends Messages, K extends Phases>(eventName: Message, phases: K[], callback: OnCallback<State, Attributes, Transitions[K], Messages, Signals, Timers, ExtractMessageArgument<Message, MesssageSignatures, State, Phases>, MessageSignatures, SignalsSignatures>): this;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: node_modules/faste/dist/es5/faste.d.ts:44:129 - error TS2344: Type 'ExtractMessageArgument<Message, MessageSignatures, State, Phases>' does not satisfy the constraint 'readonly any[]'.
Type 'ExtractMessageArgument<Messages, MessageSignatures, State, Phases>' is not assignable to type 'readonly any[]'.
44 on<Message extends Messages>(eventName: Message, callback: OnCallback<State, Attributes, Phases, Messages, Signals, Timers, ExtractMessageArgument<Message, MessageSignatures, State, Phases>, MessageSSignatures, SignalsSignatures>): this;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: node_modules/faste/dist/es5/interfaces/internal-machine.d.ts:33:51 - error TS2370: A rest parameter must be of an array type.
33 emit<Signal extends Signals>(message: Signal, ...args: ExtractSignature<SignalSignatures, Signal>): void;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: node_modules/faste/dist/es5/interfaces/internal-machine.d.ts:39:80 - error TS2370: A rest parameter must be of an array type.
39 trigger<Message extends Messages>(message: Exclude<Message, MAGIC_EVENTS>, ...args: ExtractSignature<MessageSignatures, Message>): void;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
× Failed to compile.
Not sure if I'm missing something but I'm getting the following error when trying to include this to one of my Angular projects.
Error