Skip to content

Commit

Permalink
update comment with TS issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ben.durrant committed May 16, 2023
1 parent 5c518a6 commit 61515da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/types/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
*
* @template T the type of the action's `type` tag.
*/
// things break if this is an interface #justtypescriptthings
// https://tsplay.dev/wj8X6m
// this needs to be a type, not an interface
// https://github.com/microsoft/TypeScript/issues/15300
export type Action<T extends string = string> = {
type: T
}
Expand Down

0 comments on commit 61515da

Please sign in to comment.