Types are incomplete for Style
See original GitHub issueDescribe the bug
The type declaration for Style
is incomplete and unnecessarily duplicates information available from other sources of truth.
To Reproduce One example:
- Attempt to use
justifyContent: "flex-end"
in a `Stylesheet.create({…}) - Notice the TS error
You can make use of react-pdf REPL to share the snippet
Expected behavior Shouldn’t have a TS error
Screenshots N/A
Desktop (please complete the following information):
- React-pdf version 1.6.4
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Incomplete types in template code - c++ - Stack Overflow
Suppose we have two types (complete and incomplete):
Read more >Incomplete Types - Microsoft Learn
An incomplete type can be: A structure type whose members you have not yet specified. A union type whose members you have not...
Read more >Incomplete Types - Oracle® Developer Studio 12.6
There are only three variations of incomplete types: void, arrays of unspecified length, and structures and unions with unspecified content. The type void ......
Read more >Incomplete type - PVS-Studio
Incomplete types include: the void type;; structs, classes, and unions, for which an implementation has not yet been defined;; unknown size ...
Read more >A very incomplete font style that communicates ... - Pinterest
A very incomplete font style that communicates mystery. Almost looks like another language. Free font, Fonts, Logo fonts.
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
All merged! Thanks for your effort. I’ve been traveling these past few days and couldn’t dedicate that much time to the project but I’ll soon!
Hey! Not sure about using csstype, since react-pdf does not support all the CSS spec. Adding these types will give a confusing idea that we do, creating a lot of frustration when some don’t work. Pinging @rzymek who did the original styles types. I would be happy to merge any PR that fixes missing types