-
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.
Merge pull request #30 from wentout/proto
decorators explanation
- Loading branch information
Showing
12 changed files
with
1,306 additions
and
4,986 deletions.
There are no files selected for viewing
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,9 +1,8 @@ | ||
declare const BaseConstructor: ObjectConstructor; | ||
export declare class BaseClass extends BaseConstructor { | ||
type Proto<P, T> = Pick<P, Exclude<keyof P, keyof T>> & T; | ||
export declare const BaseConstructorPrototype: <P extends object, S extends Proto<T, P>, T extends { | ||
(): P; | ||
new (): { [key in keyof S]: S[key]; }; | ||
}>(this: T, InstanceTarget?: P) => T; | ||
export declare class BaseClass extends BaseConstructorPrototype { | ||
} | ||
export type IDEF<T, P = {}, R = {}> = { | ||
new (...args: unknown[]): T; | ||
(this: T, ...args: unknown[]): R; | ||
prototype: P; | ||
}; | ||
export {}; | ||
export { FieldConstructor } from './fields'; |
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
Oops, something went wrong.