-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
'waitForWire' function and better typing
- Loading branch information
1 parent
5b33b67
commit 83444c2
Showing
5 changed files
with
61 additions
and
24 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
export type ClassType = new (...args: unknown[]) => unknown; | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
export type ClassType = new (...args: any) => any; | ||
|
||
export type BeanType = 'bean' | (string & NonNullable<unknown>); | ||
export type ContainerIdType = 'default' | (string & NonNullable<unknown>); | ||
|
||
//we trick typescript and avoid errors by setting val type to undefined | ||
export type AutowiredDescriptor = (val: undefined) => void; | ||
|
||
export type RegisterBeanArgs = { | ||
id?: string; | ||
type?: BeanType; | ||
containerId?: ContainerIdType; | ||
}; |