Skip to content

Commit

Permalink
fix: add schema type
Browse files Browse the repository at this point in the history
  • Loading branch information
arashsheyda committed Oct 12, 2023
1 parent b0fb2ed commit 4bc0742
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime/server/services/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ export async function defineMongooseConnection({ uri, options }: { uri?: string;
export function defineMongooseModel<T>(
nameOrOptions: string | {
name: string
schema: SchemaDefinition
schema: SchemaDefinition<T>
options?: SchemaOptions
hooks?: (schema: mongoose.Schema<T>) => void
},
schema?: SchemaDefinition,
schema?: SchemaDefinition<T>,
options?: SchemaOptions,
hooks?: (schema: mongoose.Schema<T>) => void,
): Model<T> {
Expand Down

0 comments on commit 4bc0742

Please sign in to comment.