projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Create composable helper for setting constant pickerId
[arvados-workbench2.git]
/
src
/
store
/
resources
/
resources.ts
diff --git
a/src/store/resources/resources.ts
b/src/store/resources/resources.ts
index 189fd4b167843879a7aa040eb6e82f7f61f749fb..e7153decd70af11a91131c8f8009a26a74df73eb 100644
(file)
--- a/
src/store/resources/resources.ts
+++ b/
src/store/resources/resources.ts
@@
-7,7
+7,7
@@
import { ResourceKind } from '~/models/resource';
export type ResourcesState = { [key: string]: Resource };
export type ResourcesState = { [key: string]: Resource };
-export const getResource = <T extends Resource =
any
>(id: string) =>
+export const getResource = <T extends Resource =
Resource
>(id: string) =>
(state: ResourcesState): T | undefined =>
state[id] as T;
(state: ResourcesState): T | undefined =>
state[id] as T;