source: imaps-frontend/node_modules/react-universal-interface/lib/hookToRenderProp.d.ts

main
Last change on this file 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 
1import { FC } from 'react';
2export declare type MapPropsToArgs<Props extends {}, Args extends any[]> = (props: Props) => Args;
3export declare type CreateRenderProp = <Props extends {}, Args extends any[], State extends any>(hook: (...args: Args) => State, mapPropsToArgs?: MapPropsToArgs<Props, Args>) => FC<Props>;
4declare const hookToRenderProp: CreateRenderProp;
5export default hookToRenderProp;
Note: See TracBrowser for help on using the repository browser.