-
-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
Check List
- I have already read README.
- I have already searched existing issues.
- I have already searched existing pull requrests.
Feature Request
There are still some problems with the current type labeling for warehouses. For example:
warehouse/src/types/virtual.ts
Line 17 in 83df5a1
| get(fn: (this: T) => any): SchemaTypeVirtual<T> { |
Actually, it should be:
get(fn: (this: Document<T>) => any): SchemaTypeVirtual<T> {}However, it is difficult to refactor the type due to the following implementations:
Lines 19 to 23 in 83df5a1
| constructor(data?: T) { | |
| if (data) { | |
| Object.assign(this, data); | |
| } | |
| } |
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels