Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Type 'IStyleSet' is not generic. #30714

Closed
2 tasks done
sakgoyal opened this issue Mar 5, 2024 · 0 comments · Fixed by #30753
Closed
2 tasks done

[Bug]: Type 'IStyleSet' is not generic. #30714

sakgoyal opened this issue Mar 5, 2024 · 0 comments · Fixed by #30753
Assignees

Comments

@sakgoyal
Copy link

sakgoyal commented Mar 5, 2024

Library

@fluentui/react-file-type-icons

System Info

System:
    OS: Linux 6.2 Ubuntu 20.04.6 LTS (Focal Fossa)
    CPU: (4) x64 AMD EPYC 7763 64-Core Processor
    Memory: 9.89 GB / 15.61 GB
    Container: Yes
    Shell: 5.0.17 - /bin/bash

Bug Description

I only installed the following package. nothing else
@fluentui/react-file-type-icons
Then my code cannot compile because of this bug.
(typescript 5.3.3)

Actual Behavior

Unable to compile code

./node_modules/@fluentui/merge-styles/lib/IStyleFunction.d.ts:7:68
Type error: Type 'IStyleSet' is not generic.

   5 |  * {@docCategory IStyleFunction}
   6 |  */
>  7 | export declare type IStyleFunction<TStylesProps, TStyleSet extends IStyleSet<TStyleSet>> = (props: TStylesProps) => DeepPartial<TStyleSet>;
     |                                                                    ^
   8 | /**
   9 |  * Represents either a style function that takes in style props and returns a partial styleset,
  10 |  * or a partial styleset object

Logs

No response

Requested priority

Blocking

Products/sites affected

No response

Are you willing to submit a PR to fix?

no

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • The provided reproduction is a minimal reproducible example of the bug.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants