Skip to content

Commit

Permalink
fix: generic in Promise
Browse files Browse the repository at this point in the history
  • Loading branch information
star0202 committed May 3, 2023
1 parent 127becb commit 35c056b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,4 @@ export class Neis extends NeisRequest {
}
}

const firstOf = <T>(promise: Promise<>) => promise.then((res) => res[0])
const firstOf = <T>(promise: Promise<T[]>) => promise.then((res) => res[0])

0 comments on commit 35c056b

Please sign in to comment.