16 lines
394 B
TypeScript
16 lines
394 B
TypeScript
import 'twin.macro';
|
|
import styledImport, { CSSProp, css as cssImport } from 'styled-components';
|
|
|
|
declare module 'twin.macro' {
|
|
const styled: typeof styledImport;
|
|
const css: typeof cssImport;
|
|
}
|
|
|
|
declare module 'react' {
|
|
interface HTMLAttributes<T> extends DOMAttributes<T> {
|
|
css?: CSSProp<T>,
|
|
}
|
|
interface SVGProps<T> extends SVGProps<SVGSVGElement> {
|
|
css?: CSSProp<T>,
|
|
}
|
|
}
|