dotkom / design-system

Component library, maybe
https://design.online.ntnu.no
MIT License
4 stars 4 forks source link

createGlobalStyle has an error on master #173

Closed FluidSense closed 3 years ago

FluidSense commented 3 years ago

npm run lint-check fails with this error on a cleanly installed branch.

src/common/global.ts:5:28 - error TS2615: Type of property 'defaultProps' circularly references itself in mapped type 'Pick<ForwardRefExoticComponent<Pick<Pick<any, Exclude<keyof ReactDefaultizedProps<StyledComponentInnerComponent<WithC>, ComponentPropsWithRef<StyledComponentInnerComponent<WithC>>>, StyledComponentInnerAttrs<...> | ... 1 more ... | StyledComponentInnerAttrs<...>> | Exclude<...> | Exclude<...> | Exclude<...>> & Parti...'.

  5 export const GlobalStyle = createGlobalStyle`
                               ~~~~~~~~~~~~~~~~~~
  6   ${Reset}
    ~~~~~~~~~~
...
 52   }
    ~~~
 53 `;
    ~

src/common/global.ts:5:28 - error TS2615: Type of property 'defaultProps' circularly references itself in mapped type 'Pick<ForwardRefExoticComponent<Pick<Pick<any, Exclude<keyof ReactDefaultizedProps<StyledComponentInnerComponent<WithC>, ComponentPropsWithRef<StyledComponentInnerComponent<WithC>>>, any>> & Partial<...>, any> & { ...; } & WithChildrenIfReactComponentClass<...>>, "defaultProps" | ... 1 more ... | "$$typeof">'.

  5 export const GlobalStyle = createGlobalStyle`
                               ~~~~~~~~~~~~~~~~~~
  6   ${Reset}
    ~~~~~~~~~~
...
 52   }
    ~~~
 53 `;
    ~
github-actions[bot] commented 3 years ago

:tada: This issue has been resolved in version 0.19.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: