diff --git a/index.d.ts b/index.d.ts index ad5a22a..e24fb4e 100644 --- a/index.d.ts +++ b/index.d.ts @@ -2,12 +2,17 @@ // Project: render-propper // Definitions by: Seth MacPherson -declare function renderProp(propCallback: Function): (componentLogic: Function) => Function; -declare function renderProp(propCallback: Function, componentLogic: Function): Function; +declare function renderProp( + renderer: (input: Input) => (results: Results) => Output +): (logic: (input: Input) => Results) => (input: Input) => Output; -declare function childrenRenderProp(componentLogic: Function): Function; +declare function renderProp( + renderer: (input: Input) => (results: Results) => Output, + logic: (input: Input) => Results +): (input: Input) => Output; -export { - renderProp, - childrenRenderProp -} \ No newline at end of file +declare function childrenRenderProp( + logic: (input: Input) => Results +): (input: Input) => Output; + +export { renderProp, childrenRenderProp };