Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type Definitions #72

Open
rcdexta opened this issue Nov 2, 2018 · 1 comment
Open

Type Definitions #72

rcdexta opened this issue Nov 2, 2018 · 1 comment

Comments

@rcdexta
Copy link

rcdexta commented Nov 2, 2018

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

@ghost
Copy link

ghost commented Jul 22, 2019

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";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant