From 49c303c5016235303287ef7002b7f9ed639fef9d Mon Sep 17 00:00:00 2001 From: Kumar McMillan Date: Fri, 11 Sep 2020 14:55:28 -0500 Subject: [PATCH] Fix typo in $Call documentation See https://github.com/piotrwitek/utility-types/issues/149 . I don't know if this patch should close that issue, though. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 03060a1..babfe57 100644 --- a/README.md +++ b/README.md @@ -1066,7 +1066,7 @@ import { $Call } from 'utility-types'; // Common use-case const add = (amount: number) => ({ type: 'ADD' as 'ADD', payload: amount }); -type AddAction = $Call; // { type: 'ADD'; payload: number } +type AddAction = $Call; // { type: 'ADD'; payload: number } // Examples migrated from Flow docs type ExtractPropType = (arg: T) => T['prop'];