Update index.md

This commit is contained in:
Pearl C 2023-01-14 16:41:03 +08:00 committed by GitHub
parent c0b5a21b91
commit 9281ee61dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -141,7 +141,7 @@ await UserRepository.destroy(user.id);
| 参数名 | 类型 | 默认值 | 描述 |
| --- | --- | --- | --- |
| `options.name` | `string` | - | 迁移文件名称 |
| `options.context?` | `string` | - | 迁移文件的 `up` 方法 |
| `options.context?` | `string` | - | 迁移文件的上下文 |
| `options.migration?` | `typeof Migration` | - | 迁移文件的自定义类 |
| `options.up` | `Function` | - | 迁移文件的 `up` 方法 |
| `options.down` | `Function` | - | 迁移文件的 `down` 方法 |
@ -575,6 +575,8 @@ asset(post1.authorId === author1.id); // true
* `off(name: string, listener: Function)`
**参数**
| 参数名 | 类型 | 默认值 | 描述 |
| --- | --- | --- | --- |
| name | string | - | 事件名称 |