Skip to content
This repository has been archived by the owner on Sep 28, 2020. It is now read-only.

Commit

Permalink
fix: adjusted types to default to any for generics
Browse files Browse the repository at this point in the history
  • Loading branch information
smacpherson64 committed Sep 27, 2018
1 parent 37e0dbd commit 31f78ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
// Project: render-propper
// Definitions by: Seth MacPherson <https://github.com/smacpherson64>

declare function renderProp<Input, Results, Output>(
declare function renderProp<Input = any, Results = any, Output = any>(
renderer: (input: Input) => (results: Results) => Output
): (logic: (input: Input) => Results) => (input: Input) => Output;

declare function renderProp<Input, Results, Output>(
declare function renderProp<Input = any, Results = any, Output = any>(
renderer: (input: Input) => (results: Results) => Output,
logic: (input: Input) => Results
): (input: Input) => Output;

declare function childrenRenderProp<Input, Results, Output>(
declare function childrenRenderProp<Input = any, Results = any, Output = any>(
logic: (input: Input) => Results
): (input: Input) => Output;

Expand Down

0 comments on commit 31f78ec

Please sign in to comment.