Closed bwgjoseph closed 3 years ago
Hi,
The model type declaration in ottoman.d.ts for options is missing the types ModelOptions
model
ottoman.d.ts
options
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
any
Our team is looking into it
Will be made available with next release.
Fixed w/ alpha 29
Hi,
The
model
type declaration inottoman.d.ts
foroptions
is missing the typesModelOptions
The current one is
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 asany