Add TypeScript declarations
See original GitHub issueAs 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:
- Created 5 years ago
- Reactions:3
- Comments:7 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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: #28This 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
😃