Skip to content
New issue

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

Property 'options' does not exist on type '(schema: Schema<any, Model<any, any, any, any>, any, any>) => void' #154

Closed
kerolloz opened this issue Feb 4, 2022 · 5 comments · May be fixed by Artur-data-DEV/ads-backend-2021#5 or dreampipcom/mnemosyne#4
Labels
bug Something isn't working

Comments

@kerolloz
Copy link
Contributor

kerolloz commented Feb 4, 2022

image

@aravindnc
Copy link
Owner

@ypicard This too.

@aravindnc aravindnc added the bug Something isn't working label Feb 4, 2022
@ypicard
Copy link
Contributor

ypicard commented Feb 4, 2022

Will look today.

aravindnc added a commit that referenced this issue Feb 5, 2022
fix: update paginate options typings (fixes #154)
@aravindnc
Copy link
Owner

@kerolloz @ypicard Package updated. Please verify.

@ypicard
Copy link
Contributor

ypicard commented Feb 7, 2022

LGTM.

@rahmanrezaee
Copy link

add this line in model file

ShiftsSchema.plugin(paginate);

// make a interface
interface ShiftsDocument extends mongoose.Document { }

// user generic <ShiftsDocument, mongoose.PaginateModel<ShiftsDocument>>
export default mongoose.model<ShiftsDocument, mongoose.PaginateModel<ShiftsDocument>>("shifts", ShiftsSchema);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
4 participants