UNPKG

@helpwave/hightide

Version:

helpwave's component and theming library

9 lines (7 loc) 287 B
/** * A simple function that implements the builder pattern * @param value The value to update which gets return with the same reference * @param update The updates to apply on the object */ declare const builder: <T>(value: T, update: (value: T) => void) => T; export { builder };