main
Last change
on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
399 bytes
|
Line | |
---|
1 | import { FC } from 'react';
|
---|
2 | export declare type MapPropsToArgs<Props extends {}, Args extends any[]> = (props: Props) => Args;
|
---|
3 | export declare type CreateRenderProp = <Props extends {}, Args extends any[], State extends any>(hook: (...args: Args) => State, mapPropsToArgs?: MapPropsToArgs<Props, Args>) => FC<Props>;
|
---|
4 | declare const hookToRenderProp: CreateRenderProp;
|
---|
5 | export default hookToRenderProp;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.