Skip to content

Commit

Permalink
Fix typo in $Call comment (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuddomack authored Aug 29, 2023
1 parent 7c194c0 commit 411e83e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utility-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export type $ElementType<
* @example
* // 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 411e83e

Please sign in to comment.