chore: update README.md
to reflect type for import (#297)
This commit is contained in:
parent
8c0dbddab8
commit
34f8c298b0
@ -3,7 +3,7 @@
|
|||||||
A custom user module system. Place a `.ts` file with the following template, it will be installed automatically.
|
A custom user module system. Place a `.ts` file with the following template, it will be installed automatically.
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
import { UserModule } from '~/types'
|
import type { UserModule } from '~/types'
|
||||||
|
|
||||||
export const install: UserModule = ({ app, router, isClient }) => {
|
export const install: UserModule = ({ app, router, isClient }) => {
|
||||||
// do something
|
// do something
|
||||||
|
Loading…
Reference in New Issue
Block a user