Skip to content

Conversation

@mat813
Copy link

@mat813 mat813 commented Jun 13, 2022

The error was:

.../types/index.d.ts:9:29 - error TS2370: A rest parameter must be of an array type.

9 type AsyncFunction<A, O> = (...args: A) => Promise<O>;
                              ~~~~~~~~~~

So enforce the parameter to be some kind of array.

Checklist

  • I have ensured my pull request is not behind the main or master branch of the original repository.
  • I have rebased all commits where necessary so that reviewing this pull request can be done without having to merge it first.
  • I have written a commit message that passes commitlint linting.
  • I have ensured that my code changes pass linting tests.
  • I have ensured that my code changes pass unit tests.
  • I have described my pull request and the reasons for code changes along with context if necessary.

The error was:

    .../types/index.d.ts:9:29 - error TS2370: A rest parameter must be of an array type.

    9 type AsyncFunction<A, O> = (...args: A) => Promise<O>;
                                  ~~~~~~~~~~

So enforce the parameter to be some kind of array.
@titanism titanism merged commit 04c48af into breejs:master Jun 13, 2022
@titanism
Copy link
Contributor

@mat813 mat813 deleted the fix-types branch June 13, 2022 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants