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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add type declarations to libs and styles #2435
Conversation
Features
Bug Fixes
ContributorsCommit-Lint commandsYou can trigger Commit-Lint actions by commenting on this PR:
|
Visit the preview URL for this PR (updated for commit e696093): https://react-rainbow--pr2435-add-libs-styles-type-alebnb6q.web.app (expires Mon, 01 Aug 2022 22:33:52 GMT) 馃敟 via Firebase Hosting GitHub Action 馃寧 |
src/libs/hooks/useDisclosure.d.ts
Outdated
toggle: () => void; | ||
} | ||
|
||
declare function useDisclosure(defaultIsOpen: any): Disclosure; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should not use any
src/libs/hooks/useDisclosure.d.ts
Outdated
toggle: () => void; | ||
} | ||
|
||
declare function useDisclosure(defaultIsOpen: any): Disclosure; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also here defaultIsOpen should be optional
@@ -0,0 +1,2 @@ | |||
declare function useErrorMessageId(error: any): string | undefined; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same ^^ no any and optional
src/libs/hooks/useLabelId.d.ts
Outdated
@@ -0,0 +1,2 @@ | |||
declare function useLabelId(label: any): string | undefined; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same ^^
src/libs/hooks/useLocale.d.ts
Outdated
@@ -0,0 +1,2 @@ | |||
declare function useLocale(localProp: string): string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
optional
@@ -0,0 +1,2 @@ | |||
declare function useUniqueIdentifier(prefix: string): string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
optional
Code Climate has analyzed commit e606127 and detected 3 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
No description provided.