const $delete: () => any
Delete a value.
import { $delete } from "@use-gpu/state";
const value = {
hello: {text: 'world', bar: 2},
foo: 1,
};
const update = {
foo: $delete(),
};
expect(patch(value, update)).toEqual({
hello: {text: 'world', bar: 2},
});
packages / state / src / patch.ts