Describe the bug
Typescript errors due to addition of fasds variant in FontAwesome version 6.6.0. The icon renders correctly, but the Typescript error breaks the build.
Reproducible test case
Install @fortawesome/pro-light-svg-icons@"^6.6.0"
import { faWarning } from '@fortawesome/pro-light-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
[...]
<FontAwesomeIcon icon={faWarning} />
error from Typescript:
TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'.
Type 'IconDefinition' is not assignable to type 'IconLookup'.
Types of property 'prefix' are incompatible.
Type 'import("path/to/node_modules/@fortawesome/fontawesome-common-types/index").IconPrefix' is not assignable to type 'import("path/to/node_modules/@fortawesome/fontawesome-svg-core/node_modules/@fortawesome/fontawesome-common-types/index").IconPrefix'.
Type '"fasds"' is not assignable to type 'IconPrefix'. Did you mean '"fass"'?
Expected behavior"fasds" is an acceptable IconPrefix and the app builds without error
Desktop (please complete the following information):
Browser [e.g. chrome, safari] Chrome
Version
Additional context
Add any other context about the problem here.
Describe the bug Typescript errors due to addition of
fasds
variant in FontAwesome version 6.6.0. The icon renders correctly, but the Typescript error breaks the build.Reproducible test case Install @fortawesome/pro-light-svg-icons@"^6.6.0"
error from Typescript:
Expected behavior
"fasds"
is an acceptable IconPrefix and the app builds without errorDesktop (please complete the following information):
Additional context Add any other context about the problem here.