We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c518a6 commit 61515daCopy full SHA for 61515da
src/types/actions.ts
@@ -14,8 +14,8 @@
14
*
15
* @template T the type of the action's `type` tag.
16
*/
17
-// things break if this is an interface #justtypescriptthings
18
-// https://tsplay.dev/wj8X6m
+// this needs to be a type, not an interface
+// https://github.com/microsoft/TypeScript/issues/15300
19
export type Action<T extends string = string> = {
20
type: T
21
}
0 commit comments