Skip to content

EditJsonParams<T>

Parameters for editJson.

Import:

import type { EditJsonParams } from '@mnaoumov/typescript-dev-toolkit/json';

Signature:

export interface EditJsonParams<T> extends EditJsonOptions

Extends: EditJsonOptions

Properties

PropertyTypeDescription
editFunction(data: T) => Promisable<void>The function to edit the parsed JSON data.
pathstringThe path to the JSON file.
shouldSkipIfMissing?booleanIf true, skips editing if the file does not exist.
(Inherited from EditJsonOptions)

Links to this page: