UNPKG

sussy-util

Version:
10 lines (9 loc) 451 B
import MutableObject from '../Types/MutableObject'; /** * @param obj - MutableObject<any> - This is the object that we want to add a property to. * @param {string} prop - string - The property to add to the object * @param {any} value - any - The value to add to the object * @returns The object that was passed in. */ declare const addProperty: <T>(obj: MutableObject<T>, prop: string, value: T) => MutableObject<T>; export default addProperty;