!THIS IS CURRENTLY OUT OF DATE!
yarn add -D chronstruct-primitives
Usage note: Requires linaria. See starter for an example.
Also, if you'd like to auto-add import {css} from 'linaria'
, use:
["chronstruct-primitives", {
"autoImport": true
}],
in .babelrc
Since this is global, and you have no reason to import {} from chronstruct-primities
in your source code, create a global.d.ts
file in your project with:
/// <reference types="chronstruct-primitives" />
Now, typescript should understand these primitives and not error.