question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add TypeScript declarations

See original GitHub issue

As a React developer, this library seems like a perfect baseline library to build upon, as it solves css-in-js in a sophisticated way.

However, what keeps me from using it in favor of other css-in-js approaches is the lack of TypeScript declarations.

In jss, i have TypeScript autocompletition and type checking shouting at me if i try to set an invalid CSS-property.

Please add TypeScript (and maybe flow) declaration files to this project.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mshwerycommented, Jan 10, 2019

For practical purposes, yes @peduarte !

There are initial type defs released under @types/ui-box, but there is also work to migrate ui-box fully over to TypeScript: #28

0reactions
mshwerycommented, May 8, 2019

This is going to be in the next major release. We’ll continue making improvements (like generic type signatures for getting is props enforcement/autocompletion).

Thank you @Rowno @nettofarah @jfmaggie for your contribution to make this happen! Next up, evergreen-ui 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Documentation - Type Declarations - TypeScript
TypeScript includes declaration files for all of the standardized built-in APIs available in JavaScript runtimes. This includes things like methods and ...
Read more >
A quick introduction to “Type Declaration” files and adding ...
In this lesson, we are going to take a closer look at type declaration files which are one of the key ingredients of...
Read more >
Adding declarations file manually (TypeScript) - Stack Overflow
I created @types/<module_name> dir in my src and put there index.d.ts file with one line like above. It worked. – Vlad ...
Read more >
TypeScript — Type Declaration Files | by Makesh Kumar
TypeScript itself comes with a bunch of type declaration files to support all JavaScript features. After installing TypeScript, navigate to the node_modules/ ...
Read more >
TypeScript: Adding Custom Type Definitions for Existing ...
Before you write custom types, you need to tell the transpiler about them. To do this you should edit the tsconfig.json file, and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found