Skip to content

Commit

Permalink
Fix typo in $Call documentation (#154)
Browse files Browse the repository at this point in the history
See #149 . I don't know if this patch should close that issue, though.
  • Loading branch information
kumar303 authored Sep 12, 2020
1 parent 11e48e8 commit 259d12b
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 259d12b

Please sign in to comment.