Skip to content
#

fp-ts

Here are 73 public repositories matching this topic...

pico
SamHH
SamHH commented Feb 9, 2020

Explicit return types are good, but it should also accept them when they're provided via a previous (for want of a better word) type. For example, the following is completely safe and explicit, but the linter flags it:

const startsWith = (x: string): Predicate<string> => (y) => y.startsWith(x);

Improve this page

Add a description, image, and links to the fp-ts topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the fp-ts topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.