refactor(client): document and test create types utilities (#42960)

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
This commit is contained in:
Victor Duarte
2021-07-24 11:24:08 -05:00
committed by GitHub
parent 99c16ae551
commit 10511a7402
5 changed files with 49 additions and 17 deletions

View File

@ -1,9 +0,0 @@
export function createTypes(types = [], ns = 'annon') {
return types.reduce(
(types, action) => ({
...types,
[action]: `${ns}.${action}`
}),
{}
);
}