UNPKG

842 BTypeScriptView Raw
1/**
2 * Splits a CSS declaration value (shorthand) using provided separators
3 * as the delimiters.
4 */
5export declare function split(
6 /**
7 * A CSS declaration value (shorthand).
8 */
9 value: string,
10 /**
11 * Any number of separator characters used for splitting.
12 */
13 separators: string[], {last}?: {
14 last?: boolean;
15}): string[];
16/**
17 * Splits a CSS declaration value (shorthand) using whitespace characters
18 * as the delimiters.
19 */
20export declare function splitBySpaces(
21 /**
22 * A CSS declaration value (shorthand).
23 */
24 value: string): string[];
25/**
26 * Splits a CSS declaration value (shorthand) using commas as the delimiters.
27 */
28export declare function splitByCommas(
29 /**
30 * A CSS declaration value (shorthand).
31 */
32 value: string): string[];