Comments (5)
This is only an issue for "@types/react": "18.2.67"
For a workaround you can downgrade to 18.2.62
- if only React would have been written in TypeScript...
from react-simple-icons.
Just did some additional investigating and I do not see either of those attributes defined in @types/react
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/2f4238e22773624585ec81994bf54ef9873f5e2c/types/react/ts5.0/index.d.ts#L2487-L2488
(which is why those types come up as untyped required attributes)
But how has no one else run into this issue?
from react-simple-icons.
Last thing, wouldn't it be better to structure IconType
as:
type IconType = React.ForwardRefExoticComponent<
Omit<React.SVGProps<SVGSVGElement>, 'title' | 'color' | 'size'> & {
title?: string;
color?: string;
size?: string | number;
} & React.RefAttributes<SVGSVGElement>
>;
from react-simple-icons.
Hello everyone,
I've submitted a PR #216 that aims to resolve the type error issue highlighted in issue #215 by removing the onPointerEnterCapture and onPointerLeaveCapture from the type declarations, syncing with the recent updates to React's type definitions. I would greatly appreciate any feedback or suggestions on this solution.
Thank you for your time and looking forward to any further discussion!
from react-simple-icons.
Related Issues (20)
- Generic icon component with type property. HOT 10
- automatically stay up to date with simple-icons HOT 6
- Dynamic import by icon slug HOT 2
- Version 5.1 Husky error HOT 3
- Typescript: Unable to add className prop HOT 2
- v5.2.0 tree shaking doesn't work as intended HOT 18
- Use Dependabot to keep simple-icons up to date HOT 6
- Move to esbuild HOT 1
- Default Icon Color HOT 3
- v6.2.0 to v6.3.0 breaks all icon references HOT 3
- Icons in `any` instead of `IconType` HOT 2
- [RFC] Adding a default classname to all icons HOT 4
- Feature Request: Add Export for Default Icon Colors HOT 2
- Export `IconType` to allow use outside of the package
- "SyntaxError: ambiguous indirect export" when importing any icons or colors HOT 1
- Update Simple Icons Version HOT 1
- Is there a way to get icon component by specific enum name? HOT 4
- Error: EMFILE: too many open files HOT 5
- `missing the following properties` HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-simple-icons.