Skip to content

Commit

Permalink
Fix typo in $Call documentation
Browse files Browse the repository at this point in the history
See piotrwitek#149 . I don't know if this patch should close that issue, though.
  • Loading branch information
kumar303 authored Sep 11, 2020
1 parent 11e48e8 commit 49c303c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<typeof returnOfIncrement>; // { type: 'ADD'; payload: number }
type AddAction = $Call<typeof add>; // { type: 'ADD'; payload: number }

// Examples migrated from Flow docs
type ExtractPropType<T extends { prop: any }> = (arg: T) => T['prop'];
Expand Down

0 comments on commit 49c303c

Please sign in to comment.