From f1ba0db02a7bb25002adbc6c474728288243501f Mon Sep 17 00:00:00 2001 From: Alexander Akait <4567934+alexander-akait@users.noreply.github.com> Date: Thu, 18 May 2023 23:13:08 +0300 Subject: [PATCH] docs: fix (#1521) --- README.md | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index ac7eef6c..61febb9c 100644 --- a/README.md +++ b/README.md @@ -184,9 +184,17 @@ Type: ```ts -type import = +type importFn = | boolean - | { filter: (url: string, media: string, resourcePath: string) => boolean }; + | { + filter: ( + url: string, + media: string, + resourcePath: string, + supports?: string, + layer?: string + ) => boolean; + }; ``` Default: `true` @@ -693,11 +701,11 @@ Type: ```ts type mode = - | "local" - | "global" - | "pure" - | "icss" - | ((resourcePath) => "local" | "global" | "pure" | "icss"))` + | "local" + | "global" + | "pure" + | "icss" + | ((resourcePath: string) => "local" | "global" | "pure" | "icss"); ``` Default: `'local'`