docs: add types link

This commit is contained in:
Arash Sheyda
2023-07-09 14:21:33 +03:00
parent 925d382f2f
commit 9c0e0baf95

View File

@ -49,9 +49,9 @@ This function creates a new Mongoose model with schema. Example usage:
| **Key** | **Type** | **Require** | **Description** | | **Key** | **Type** | **Require** | **Description** |
| ---------------------------- | ----------- | ----------- | ----- | | ---------------------------- | ----------- | ----------- | ----- |
| `name` | `string` | true | Name of Model | | `name` | `string` | true | Name of Model |
| `schema` | `SchemaDefinition` | true | Schema Definition of Model | | `schema` | [`SchemaDefinition`](https://mongoosejs.com/docs/schematypes.html) | true | Schema Definition of Model |
| `options` | `SchemaOptions` | false | Schema Options for Model | | `options` | [`SchemaOptions`](https://mongoosejs.com/docs/guide.html#options) | false | Schema Options for Model |
| `hooks` | `(schema: Schema<T>) => void` | false | Schema Hooks Function to customize Model | | `hooks` | [`(schema: Schema<T>) => void`](https://mongoosejs.com/docs/middleware.html) | false | Schema Hooks Function to customize Model |