Skip to content

Commit

Permalink
fix: 馃悰 ts type check fail when class has constructor with param (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
foreleven committed Nov 26, 2019
1 parent 9662df6 commit 94faaef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stated-bean",
"version": "0.8.3",
"version": "0.8.4",
"description": "A light but scalable state management library with react hooks",
"repository": "git@github.com:mjolnirjs/stated-bean.git",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/types/ClassType.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// eslint-disable-next-line @typescript-eslint/no-type-alias
export type ClassType<T = unknown> = new (...args: unknown[]) => T;
export type ClassType<T = unknown> = new (...args: any[]) => T;

// eslint-disable-next-line @typescript-eslint/no-type-alias
export type InstanceType<T extends ClassType<T>> = T extends ClassType<infer R> ? R : never;
Expand Down

0 comments on commit 94faaef

Please sign in to comment.