Skip to content

Commit f1ba0db

Browse files
docs: fix (#1521)
1 parent 0700ce8 commit f1ba0db

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

Diff for: README.md

+15-7
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,17 @@ Type:
184184
<!-- use other name to prettify since import is reserved keyword -->
185185

186186
```ts
187-
type import =
187+
type importFn =
188188
| boolean
189-
| { filter: (url: string, media: string, resourcePath: string) => boolean };
189+
| {
190+
filter: (
191+
url: string,
192+
media: string,
193+
resourcePath: string,
194+
supports?: string,
195+
layer?: string
196+
) => boolean;
197+
};
190198
```
191199

192200
Default: `true`
@@ -693,11 +701,11 @@ Type:
693701

694702
```ts
695703
type mode =
696-
| "local"
697-
| "global"
698-
| "pure"
699-
| "icss"
700-
| ((resourcePath) => "local" | "global" | "pure" | "icss"))`
704+
| "local"
705+
| "global"
706+
| "pure"
707+
| "icss"
708+
| ((resourcePath: string) => "local" | "global" | "pure" | "icss");
701709
```
702710

703711
Default: `'local'`

0 commit comments

Comments
 (0)