summaryrefslogtreecommitdiff
path: root/@linaria/packages/core/src/css.ts
blob: 82c977fa8177547eb7df18508eeac57a32fe3325 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import type { CSSProperties } from './CSSProperties';
import type { StyledMeta } from './StyledMeta';

type CSS = (
  strings: TemplateStringsArray,
  ...exprs: Array<string | number | CSSProperties | StyledMeta>
) => string;

const css: CSS = () => {
  throw new Error(
    'Using the "css" tag in runtime is not supported. Make sure you have set up the Babel plugin correctly.'
  );
};

export default css;