npm install
npm run buld "just calls npx tsc
Compiler outputs types errors related to FilterQuery
mikro-orm-3920 % npm run build
> [email protected] build
> npx tsc
src/main.ts:52:9 - error TS2345: Argument of type '{}' is not assignable to parameter of type 'FilterQuery<Cat>'.
Type '{}' is not assignable to type 'string'.
52 {}
~~
src/main.ts:57:9 - error TS2345: Argument of type '{ id: string; }' is not assignable to parameter of type 'FilterQuery<Cat>'.
Type '{ id: string; }' is not assignable to type 'string'.
57 {
~
58 id: 'test'
~~~~~~~~~~~~~~~~~~~~~~
59 }
~~~~~~~~~
src/main.ts:64:9 - error TS2345: Argument of type '{ owner: string; }' is not assignable to parameter of type 'FilterQuery<Cat>'.
Types of property 'owner' are incompatible.
Type 'string' is not assignable to type '{ id: string; } & Reference<User>'.
Type 'string' is not assignable to type '{ id: string; }'.
64 {
~
65 owner: 'test'
~~~~~~~~~~~~~~~~~~~~~~~~~
66 }
~~~~~~~~~
src/main.ts:71:9 - error TS2345: Argument of type '{ owner: { id: string; }; }' is not assignable to parameter of type 'FilterQuery<Cat>'.
Types of property 'owner' are incompatible.
Type '{ id: string; }' is not assignable to type '{ id: string; } & Reference<User>'.
Type '{ id: string; }' is missing the following properties from type 'Reference<User>': entity, load, set, unwrap, and 5 more.
71 {
~
72 owner: {
~~~~~~~~~~~~~~~~~~~~
...
74 }
~~~~~~~~~~~~~
75 }
~~~~~~~~~
Found 4 errors in the same file, starting at: src/main.ts:52