Created
September 5, 2019 07:25
-
-
Save shulcsm/3e7fcd8b55011948e7cf5d0420aada6a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
export function createActions<E extends Entity, A extends (keyof E)[]>( | |
endpoint: string, | |
url: string, | |
actions: A, | |
): { [K in A]: Actions<E>[K] } { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment