projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
advanced-tab-curl-cli-python-examples
[arvados.git]
/
src
/
store
/
resources
/
resources.ts
diff --git
a/src/store/resources/resources.ts
b/src/store/resources/resources.ts
index 10c82ffe7f36bbd13c7ac8c193b6f1a182c94eac..189fd4b167843879a7aa040eb6e82f7f61f749fb 100644
(file)
--- a/
src/store/resources/resources.ts
+++ b/
src/store/resources/resources.ts
@@
-3,11
+3,11
@@
// SPDX-License-Identifier: AGPL-3.0
import { Resource } from "~/models/resource";
// SPDX-License-Identifier: AGPL-3.0
import { Resource } from "~/models/resource";
-import { ResourceKind } from '
../..
/models/resource';
+import { ResourceKind } from '
~
/models/resource';
export type ResourcesState = { [key: string]: Resource };
export type ResourcesState = { [key: string]: Resource };
-export const getResource = <T extends Resource =
Resource
>(id: string) =>
+export const getResource = <T extends Resource =
any
>(id: string) =>
(state: ResourcesState): T | undefined =>
state[id] as T;
(state: ResourcesState): T | undefined =>
state[id] as T;