-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
[RFR] Migrate Core Components to TypeScript #2924
Conversation
djhi
commented
Feb 24, 2019
•
edited
Loading
edited
- Resource
- RoutesWithLayout
- CoreAdminRouter
- CoreAdmin
- helpers
- Configure TS to output definitions
- [x] Resource - [ ] RoutesWithLayout - [ ] CoreAdminRouter - [ ] CoreAdmin - [ ] helpers
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.
I've only reviewed CoreAdmin and CoreAdminRouter so far.
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.
Super awesome. Can't wait to use that!
packages/ra-core/src/types.ts
Outdated
@@ -62,3 +66,32 @@ export interface ReduxState { | |||
export type Dispatch<T> = T extends (...args: infer A) => any | |||
? (...args: A) => void | |||
: never; | |||
|
|||
type RenderResourcesFunction = (permissions: any) => any[]; |
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.
No, it should return an array of ReactNode