websocket-king/twin.d.ts
2021-06-16 14:09:26 +01:00

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>,
}
}