bwgjoseph / mongoose-vs-ottoman

feature comparison between mongoose and ottoman
0 stars 1 forks source link

model options type declaration #65

Closed bwgjoseph closed 3 years ago

bwgjoseph commented 3 years ago

Hi,

The model type declaration in ottoman.d.ts for options is missing the types ModelOptions

The current one is

export declare const model: (name: string, schema: Schema | Record<string, unknown>, options?: any) => ModelTypes;

If you see in the source here - https://github.com/couchbaselabs/node-ottoman/blob/cfea7fc59ccf872d51a860f8822a686b820158aa/src/ottoman/ottoman.ts#L222

It is declared correctly, but not in the ottoman.d.ts file which is declared as any

AV25242 commented 3 years ago

Our team is looking into it

bwgjoseph commented 3 years ago

image

AV25242 commented 3 years ago

Will be made available with next release.

httpJunkie commented 3 years ago

Fixed w/ alpha 29