api response init
[arvados-workbench2.git] / src / store / resources / resources.ts
index 189fd4b167843879a7aa040eb6e82f7f61f749fb..e7153decd70af11a91131c8f8009a26a74df73eb 100644 (file)
@@ -7,7 +7,7 @@ import { ResourceKind } from '~/models/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;