🌐 AI搜索 & 代理 主页
Skip to content

Commit 29a260e

Browse files
authored
Merge pull request #1577 from n19htz/fix-list-declaration
fix List declartation
2 parents ff8e52d + 8a0e1eb commit 29a260e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

lib/list.d.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
export type List = {
2+
/**
3+
* Safely splits values.
4+
*
5+
* ```js
6+
* Once (root, { list }) {
7+
* list.split('1px calc(10% + 1px)', [' ', '\n', '\t']) //=> ['1px', 'calc(10% + 1px)']
8+
* }
9+
* ```
10+
*
11+
* @param string separated values.
12+
* @param separators array of separators.
13+
* @param last boolean indicator.
14+
* @return Split values.
15+
*/
16+
split(string: string, separators: string[], last: boolean): string[]
217
/**
318
* Safely splits space-separated values (such as those for `background`,
419
* `border-radius`, and other shorthand properties).

0 commit comments

Comments
 (0)