Skip to content

Commit

Permalink
Merge pull request #1577 from n19htz/fix-list-declaration
Browse files Browse the repository at this point in the history
fix List declartation
  • Loading branch information
ai committed May 10, 2021
2 parents ff8e52d + 8a0e1eb commit 29a260e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions 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).
Expand Down

0 comments on commit 29a260e

Please sign in to comment.