Skip to content

Commit bb9bf6c

Browse files
committed
Clean the code
1 parent 5565a43 commit bb9bf6c

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "inversify-props",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "Wrapper to use inversify as property decorator with TypeScript, useful for component libraries like Vue, React or LitElement",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

src/lib/inversify.types.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
export type Constructor<T = any> = {
2-
new (...args: any[]): T;
3-
};
1+
export type Constructor<T = any> =
2+
| {
3+
new (...args: any[]): T;
4+
}
5+
| any;
46

57
export type Id = string | symbol;
68

0 commit comments

Comments
 (0)