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).