From 8a0e1eb5a28431286c79799dbaaeaedceff024c1 Mon Sep 17 00:00:00 2001 From: Pavel L Date: Mon, 10 May 2021 22:36:32 +0300 Subject: [PATCH] fix List declartation --- lib/list.d.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/lib/list.d.ts b/lib/list.d.ts index c821dca9a..79841edeb 100644 --- a/lib/list.d.ts +++ b/lib/list.d.ts @@ -1,4 +1,19 @@ export type List = { + /** + * Safely splits values. + * + * ```js + * Once (root, { list }) { + * list.split('1px calc(10% + 1px)', [' ', '\n', '\t']) //=> ['1px', 'calc(10% + 1px)'] + * } + * ``` + * + * @param string separated values. + * @param separators array of separators. + * @param last boolean indicator. + * @return Split values. + */ + split(string: string, separators: string[], last: boolean): string[] /** * Safely splits space-separated values (such as those for `background`, * `border-radius`, and other shorthand properties).