Created
September 5, 2019 06:40
-
-
Save shulcsm/849ce74d0350fc7997231dc1ed74e592 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
interface Actions<E> { | |
list: ListAction; | |
add: AddAction<E>; | |
item: ItemAction; | |
} | |
type ActionType<E> = keyof Actions<E>; | |
function createActions<E extends Entity>( | |
actions: ActionType<E>[] = ['list', 'add', 'item'], | |
): Partial<Actions<E>> { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment