We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
node_modules/@typegoose/typegoose/lib/types.d.ts:15:56 - error TS2304: Cannot find name 'Omit'. 15 export declare type DocumentType<T> = T extends Base ? Omit<mongoose.Document, '_id'> & T : mongoose.Document & T;
Versions:
"mongoose": "^5.7.6", "@typegoose/typegoose": "^6.1.2"
Fails during build, I have reverted to 6.0.4 for now and all works fine.
The text was updated successfully, but these errors were encountered:
typescript version?
Sorry, something went wrong.
"typescript": "3.4.3"
The Omit utility type got added in typescript 3.5
Omit
-> readme states "requirements: typescript 3.7+"
Ahh, I remember now, I had this issue before with using Omit;
I can't upgrade typescript for now as I'm using it with Angular and Nestjs which don't support 3.5 yet.
I'll just keep using the 6.0.4 and should be fine
as for nestjs: i got it to work without problems on typescript 3.7
as for angular: angular/angular-cli#16071 (comment) (quick google search, never really used angular)
No branches or pull requests
Versions:
Fails during build, I have reverted to 6.0.4 for now and all works fine.
The text was updated successfully, but these errors were encountered: