Created
November 1, 2021 21:14
-
-
Save przemyslawjanpietrzak/a7d824ff276bce35c018f343dcd6623d to your computer and use it in GitHub Desktop.
literal-types-vuex.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Module1ActionContext = { | |
... | |
dispatch<K extends keyof Module2Actions>( | |
actionType: `module2Namespace/${keyof Module2Actions}`, | |
payload?: Parameters<Module2Actions[K]>[1], | |
options?: DispatchOptions, | |
): Promise<void> | void; | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment