@volvo-cars/css
Version:
Volvo Cars shared CSS
24 lines (21 loc) • 507 B
TypeScript
interface LinksFilter {
preload?: boolean;
fonts?: boolean;
tokens?: boolean;
}
interface LinksFunction {
(options?: {
base?: URL | string;
filter?: LinksFilter;
}): LinkProps[];
}
interface LinkProps {
href: string;
media?: string;
rel: 'stylesheet' | 'preload';
as?: 'font' | 'style';
crossOrigin?: 'anonymous' | 'use-credentials';
'data-volvo-css-name'?: string;
type?: 'font/woff2';
}
export type { LinksFunction as L, LinkProps as a };