refactor: redesign module system

This commit is contained in:
Anthony Fu committed 2021-01-22 18:05:58 +08:00
1 parent 7ba2102b96
commit 4c51428587
8 files changed
+29 -20

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
## Modules
A custom user module system. Place a `.ts` file with the following template, it will be installed automatically.
```ts
import { UserModule } from '/~/types'
export const install: UserModule = ({ app, router, isClient }) => {
// do something
}
```