set-value/000755 001751 000177 0000000000 14522451650014452 5ustar00runner000000 000000 1452245165014522451650set-value/LICENSE000644 001751 000177 0000002165 14522451650015463 0ustar00runner000000 000000 1452245165014522451650 MIT License Copyright (c) Microsoft Corporation. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE set-value/README.md000644 001751 000177 0000004445 14522451650015745 0ustar00runner000000 000000 1452246227514522451650# Installation > `npm install --save @types/set-value` # Summary This package contains type definitions for set-value (https://github.com/jonschlinkert/set-value). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/set-value. ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/set-value/index.d.ts) ````ts export = set; // Technically, everything will fall to the last overload, // but the first one can be useful for signature help. /** * @param object The object to set `value` on * @param path The of the property to set. * @param value The value to set on `object[prop]` * @param [options] */ declare function set(object: T, path: K, value: T[K], options?: set.Options): void; declare function set(object: object, path: set.InputType, value: any, options?: set.Options): void; declare namespace set { interface Options { /** * Do not split properties that include a `/`. * By default, set-value assumes that properties with a `/` are not intended to be split. * This option allows you to disable default behavior. * Note that this option cannot be used if `options.separator` is set to `/`. * @default true */ preservePaths?: boolean | undefined; /** * Custom separator to use for splitting object paths. * @default `.` */ separator?: string | undefined; /** * Custom `.split()` function to use. */ split?: SplitFunc | undefined; /** * Allows you to update plain object values, instead of overwriting them. * @default `undefined` */ merge?: boolean | MergeFunc | undefined; } type InputType = string | symbol | ReadonlyArray; type MergeFunc = (object: TObject, source: TSource) => TObject & TSource; type SplitFunc = (input: string, options?: Options) => string; } ```` ### Additional Details * Last updated: Tue, 07 Nov 2023 15:11:36 GMT * Dependencies: none # Credits These definitions were written by [Daniel Rosenwasser](https://github.com/DanielRosenwasser), and [Piotr Błażejewicz](https://github.com/DanielRosenwasser). set-value/index.d.ts000644 001751 000177 0000003172 14522451650016356 0ustar00runner000000 000000 1452245165014522451650export = set; // Technically, everything will fall to the last overload, // but the first one can be useful for signature help. /** * @param object The object to set `value` on * @param path The of the property to set. * @param value The value to set on `object[prop]` * @param [options] */ declare function set(object: T, path: K, value: T[K], options?: set.Options): void; declare function set(object: object, path: set.InputType, value: any, options?: set.Options): void; declare namespace set { interface Options { /** * Do not split properties that include a `/`. * By default, set-value assumes that properties with a `/` are not intended to be split. * This option allows you to disable default behavior. * Note that this option cannot be used if `options.separator` is set to `/`. * @default true */ preservePaths?: boolean | undefined; /** * Custom separator to use for splitting object paths. * @default `.` */ separator?: string | undefined; /** * Custom `.split()` function to use. */ split?: SplitFunc | undefined; /** * Allows you to update plain object values, instead of overwriting them. * @default `undefined` */ merge?: boolean | MergeFunc | undefined; } type InputType = string | symbol | ReadonlyArray; type MergeFunc = (object: TObject, source: TSource) => TObject & TSource; type SplitFunc = (input: string, options?: Options) => string; } set-value/package.json000644 001751 000177 0000001737 14522451650016755 0ustar00runner000000 000000 1452246227514522451650{ "name": "@types/set-value", "version": "4.0.3", "description": "TypeScript definitions for set-value", "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/set-value", "license": "MIT", "contributors": [ { "name": "Daniel Rosenwasser", "githubUsername": "DanielRosenwasser", "url": "https://github.com/DanielRosenwasser" }, { "name": "Piotr Błażejewicz", "githubUsername": "DanielRosenwasser", "url": "https://github.com/DanielRosenwasser" } ], "main": "", "types": "index.d.ts", "repository": { "type": "git", "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", "directory": "types/set-value" }, "scripts": {}, "dependencies": {}, "typesPublisherContentHash": "12becd0b290efe42ce70db81a4f887f1715757a792320e988fd1dd194b83f349", "typeScriptVersion": "4.5" }