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

TypeScript typing for fela-tools StyleSheet #730

Open
efoken opened this issue Aug 16, 2019 · 1 comment
Open

TypeScript typing for fela-tools StyleSheet #730

efoken opened this issue Aug 16, 2019 · 1 comment

Comments

@efoken
Copy link

efoken commented Aug 16, 2019

Type: Bug

Packages Version
fela 10.6.1

Description

TypeScript type definitions of fela-tools are not correct / missing.

Steps to reproduce

  1. Install fela together with fela-tools
  2. Create a stylesheet / rule set like in the following code example.

Expected Behavior

import { StyleSheet } from 'fela-tools';
const styles = StyleSheet.create({...});

Should work without TypeScript error.

Actual Behavior

Module '"fela-tools"' has no exported member 'StyleSheet'.ts(2305)
@robinweser
Copy link
Owner

Feel free to PR those types. I'm not using TypeScript and thus not writing the types myself.

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