ts: Theme interface definition
See original GitHub issue- Please extract the theme interface from https://github.com/grommet/grommet/blob/c7eef0ff87f6579bd16c81e5b8c8c6ef17214e3c/src/js/themes/index.d.ts#L71
into an export interface ThemeType { … }
-
Please use the theme type in
<Grommet />
component: https://github.com/grommet/grommet/blob/c7eef0ff87f6579bd16c81e5b8c8c6ef17214e3c/src/js/components/Grommet/index.d.ts#L7 -
To avoid hack code issues, can you please take out the code from
themes/index.d.ts
and move it intobase.d.ts
etc and export them all fromthemes/index.d.ts
so any future typescript conversion remains compatible with the .js code. -
Please use the theme interface type for exporting the themes ie
themes/grommet.d.ts
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
TypeScript
The Theme type represents all possible themes. It might be what you need when you're writing a library of reusable components or an...
Read more >Theme with styled-components and Typescript
Firstly, we will need to define how our theme interface looks like. Inside src folder, create styled.d.ts file and extend the existing ...
Read more >Create styled.d.ts to make Typescript work with ...
TL;DR Create theme.ts I put mine in /theme/theme.ts. ... theme type definition from the above theme.ts file. export interface DefaultTheme ...
Read more >Extend Material-UI theme in TypeScript
Material-UI is one of the most popular React component library in the world because it's easy to use and fast.
Read more >How to extend Material UI 3 theme Typescript definition ...
But in the Material UI override.d.ts file, Overrides is not an interface but a type (so it won't be extensible this way), which...
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
I’d like to take a look at this one if that is ok 😃
It’s ready for review! Here is the PR! I tried my best to follow the contributing guide but, if I missed something, just let me know 😃
Here is a link to the PR https://github.com/grommet/grommet/pull/3448