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 2063199 commit 5c518a6Copy full SHA for 5c518a6
src/types/actions.ts
@@ -14,6 +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
19
export type Action<T extends string = string> = {
20
type: T
21
}
0 commit comments