mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 15:57:13 +00:00
Added set to available types
Added `set` which does exist (https://github.com/rhalff/dot-object/blob/master/index.js#L358) but is undocumented. Used for replacing an object -> https://github.com/rhalff/dot-object/issues/8.
This commit is contained in:
Vendored
+13
@@ -120,12 +120,25 @@ declare namespace DotObject {
|
||||
*/
|
||||
remove(path: string, obj: any): any;
|
||||
/**
|
||||
*
|
||||
* Replace/create with a string
|
||||
*
|
||||
* @param {String} path dotted path
|
||||
* @param {String} v value to be set
|
||||
* @param {Object} obj object to be modified
|
||||
* @param {Function|Array} mods optional modifier
|
||||
*/
|
||||
str(path: string, v: any, obj: Object, mods?: ModifierFunctionWrapper | Array<ModifierFunctionWrapper>): void;
|
||||
/**
|
||||
*
|
||||
* Replace/merge an object to an existing object property
|
||||
*
|
||||
* @param {String} path dotted path
|
||||
* @param {Object} v object to be set
|
||||
* @param {Object} obj object to be modified
|
||||
* @param {Boolean} merge optional merge
|
||||
*/
|
||||
set(path: string, v: any, obj: Object, merge?: Boolean): void;
|
||||
/**
|
||||
*
|
||||
* Transfer a property from one object to another object.
|
||||
|
||||
Reference in New Issue
Block a user