1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 export type PropertiesState = { [key: string]: any };
7 export const getProperty = <T>(id: string) =>
8 (state: PropertiesState): T | undefined =>
11 export const setProperty = <T>(id: string, data: T) =>
12 (state: PropertiesState) => ({
17 export const deleteProperty = (id: string) =>
18 (state: PropertiesState) => {
19 const newState = { ...state };