lit#CSSResultArray TypeScript Examples
The following examples show how to use
lit#CSSResultArray.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: utils.ts From figspec with MIT License | 7 votes |
function stylesToArray(styles: typeof LitElement.styles): CSSResultArray {
if (!styles) {
return [];
}
if (styles instanceof Array) {
return styles;
}
return [styles];
}
Example #2
Source File: utils.ts From figspec with MIT License | 6 votes |
export function extendStyles(
left: typeof LitElement.styles,
right: typeof LitElement.styles
): CSSResultArray {
return [...stylesToArray(left), ...stylesToArray(right)];
}