Skip to content

Commit 61515da

Browse files
author
ben.durrant
committed
update comment with TS issue
1 parent 5c518a6 commit 61515da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/types/actions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
*
1515
* @template T the type of the action's `type` tag.
1616
*/
17-
// things break if this is an interface #justtypescriptthings
18-
// https://tsplay.dev/wj8X6m
17+
// this needs to be a type, not an interface
18+
// https://github.com/microsoft/TypeScript/issues/15300
1919
export type Action<T extends string = string> = {
2020
type: T
2121
}

0 commit comments

Comments
 (0)