Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: create EntityTarget and use instead of EntitySchema / ObjectTyp…
…e / etc (#6701)
- Loading branch information
1 parent
9583430
commit 8b68f40
Showing
17 changed files
with
199 additions
and
455 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import {ObjectType} from "./ObjectType"; | ||
import {EntitySchema} from ".."; | ||
|
||
/** | ||
* Entity target. | ||
*/ | ||
export type EntityTarget<Entity> = | ||
| ObjectType<Entity> | ||
| EntitySchema<Entity> | ||
| string | ||
| { type: Entity, name: string }; |
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.