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

Cannot use function values or function rules in TypeScript #1342

Open
16oh4 opened this issue May 7, 2020 · 0 comments
Open

Cannot use function values or function rules in TypeScript #1342

16oh4 opened this issue May 7, 2020 · 0 comments

Comments

@16oh4
Copy link

16oh4 commented May 7, 2020

Expected behavior:
Function values and function rules should render the appropriate CSS.

Describe the bug:
The rule which includes a function does not render. This is the typescript error (for function rules)

Index signature is missing in type '(data: any) => { backgroundColor: any; width: number; height: number; }'

Codesandbox link:
Please create a codesandbox.io with the issue. Make it as minimal as possible as this will help us find the bug quicker.

https://codesandbox.io/s/nifty-visvesvaraya-7eq2v?file=/src/index.ts

Versions (please complete the following information):

  • jss: 10.1.1
  • jss-plugin-camel-case: 10.1.1
  • Browser [e.g. chrome, safari]:
  • OS [e.g. Windows, macOS]: Windows 10 (Also present in CodeSandbox)
    Feel free to add any additional versions which you may think are relevant to the bug.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants