fela icon indicating copy to clipboard operation
fela copied to clipboard

TypeScript typing for fela-tools StyleSheet

Open efoken opened this issue 6 years ago • 1 comments

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)

efoken avatar Aug 16 '19 06:08 efoken

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

robinweser avatar Aug 31 '19 17:08 robinweser