EditJsonParams<T>
Parameters for editJson.
Import:
import type { EditJsonParams } from '@mnaoumov/typescript-dev-toolkit/json';Signature:
export interface EditJsonParams<T> extends EditJsonOptionsExtends: EditJsonOptions
Properties
| Property | Type | Description |
|---|---|---|
| editFunction | (data: T) => Promisable<void> | The function to edit the parsed JSON data. |
| path | string | The path to the JSON file. |
| shouldSkipIfMissing? | boolean | If true, skips editing if the file does not exist.(Inherited from EditJsonOptions) |
Links to this page: