cssinjs / styled-jss

Styled Components on top of JSS.
http://cssinjs.org/styled-jss
MIT License
217 stars 25 forks source link

Type Definitions #72

Open rcdexta opened 5 years ago

rcdexta commented 5 years ago

Any pointers on using this in a typescript project? Anyone using this library with an internal type file?

ghost commented 5 years ago

create a file typings.d.ts in src folder

then add following code

declare module 'styled-jss' {
    const styled = require('styled-jss');
    export default styled;
}

then you can using it in your component import styled from "styled-jss";