UNPKG

908 BTypeScriptView Raw
1/**
2 * Returns the value with '' around it. Any 's will be escaped \' in the output
3 */
4export declare function calc(exp: string): string;
5/**
6 * Returns the value with '' around it. Any 's will be escaped \' in the output
7 */
8export declare function quote(val: number | string): string;
9/**
10 * Returns the value with !important on the end. If the value provided is a CSSHelper, it will
11 * be converted to a string by necessity, but will look like it is the original type to TypeScript.
12 */
13export declare function important<T>(val: T): T;
14/**
15 * Returns the string in a url()
16 * @see https://developer.mozilla.org/en-US/docs/Web/CSS/url
17 */
18export declare function url(val: string): string;
19/**
20 * Returns the value as a string or an empty string if null or undefined.
21 * @param value
22 * @param fallbackValue
23 */
24export declare function coalesce<T extends number | string>(value: T | undefined): string;