@nativescript/core
Version:
A JavaScript library providing an easy to use api for interacting with iOS and Android platform APIs.
32 lines (31 loc) • 647 B
TypeScript
export interface CSSValue {
type: string;
string: string;
unit?: string;
value?: number;
}
export interface CommaToken {
type: 'comma';
string: ',';
}
export interface IdentToken {
type: 'ident';
string: string;
}
export interface NumberToken {
type: 'number';
string: string;
unit: string;
value: number;
}
export interface StringToken {
type: 'string';
quote: '"' | "'";
string: string;
value: string;
}
export type Token = CommaToken | IdentToken | NumberToken | StringToken;
/**
* Parse a string into an array of tokens.
*/
export declare function parse(str: string): Token[];