bitjson/typescript-starter

yarn watch encounter error TS2707 Generic type 'Macro' requires arguments

foreseaz opened this issue · 0 comments

  • I'm submitting a ...
  • bug report
  • feature request
  • question about the decisions made in the repository
  • question about how to use this project
  • Summary
    yarn watch ecounter src/lib/hash.spec.ts:5:13 - error TS2707: Generic type 'Macro<Args, Context>' requires between 1 and 2 type arguments.

Evn:

yarn: 1.12.3
node: v10.14.1
ava: 1.0.1
  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)

suggestion:
src/lib/hash.spec.ts Line 5 could be updated to:

const hash: Macro<[string, string]> = (t, input: string, expected: string) => {
...