Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Commit

Permalink
Merge pull request #15 from openizr/0.0.24
Browse files Browse the repository at this point in the history
Fix types definitions
  • Loading branch information
matthieujabbour authored Aug 26, 2021
2 parents 9b2b347 + e0b1689 commit 568e972
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion library/src/scripts/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -323,10 +323,12 @@ export class Engine {
*
* @param {FormEvent} eventName Name of the event to register hook for.
*
* @param {Hook<FormValues | Error | Step | UserAction | null>} hook Hook to register.
* @param {Hook<FormValues | Error | Step | UserAction | undefined | null>} hook Hook to register.
*
* @returns {void}
*/
public on(eventName: 'start', hook: Hook<undefined | null>): void;

public on(eventName: 'userAction', hook: Hook<UserAction | null>): void;

public on(eventName: 'loadNextStep', hook: Hook<Step | null>): void;
Expand Down

0 comments on commit 568e972

Please sign in to comment.