X-Git-Url: https://git.josue.xyz/?p=dotfiles%2F.git;a=blobdiff_plain;f=.config%2Fcoc%2Fextensions%2Fnode_modules%2Fcoc-prettier%2Fnode_modules%2Fdot-prop%2Findex.d.ts;h=861f533142894f96a8023fadf0e50adbb429ecda;hp=21b05459537649cafdf558697805fdeedc156fa8;hb=4d07c77cf4d78cab8639e13ddc3c22495e585b0b;hpb=b3950616b54221c40a7dab9099bda675007e5b6e diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/dot-prop/index.d.ts b/.config/coc/extensions/node_modules/coc-prettier/node_modules/dot-prop/index.d.ts index 21b05459..861f5331 100644 --- a/.config/coc/extensions/node_modules/coc-prettier/node_modules/dot-prop/index.d.ts +++ b/.config/coc/extensions/node_modules/coc-prettier/node_modules/dot-prop/index.d.ts @@ -35,6 +35,7 @@ declare const dotProp: { @param object - Object to set the `path` value. @param path - Path of the property in the object, using `.` to separate each nested key. Use `\\.` if you have a `.` in the key. @param value - Value to set at `path`. + @returns The object. @example ``` @@ -77,6 +78,7 @@ declare const dotProp: { /** @param object - Object to delete the `path` value. @param path - Path of the property in the object, using `.` to separate each nested key. Use `\\.` if you have a `.` in the key. + @returns A boolean of whether the property existed before being deleted. @example ``` @@ -93,7 +95,7 @@ declare const dotProp: { //=> {foo: {bar: {y: 'x'}}} ``` */ - delete(object: {[key: string]: any}, path: string): void; + delete(object: {[key: string]: any}, path: string): boolean; }; export = dotProp;