(filename: PathLike)
| 4 | |
| 5 | export class JSONFile<T> extends DataFile<T> { |
| 6 | constructor(filename: PathLike) { |
| 7 | super(filename, { |
| 8 | parse: JSON.parse, |
| 9 | stringify: (data: T) => JSON.stringify(data, null, 2), |
| 10 | }) |
| 11 | } |
| 12 | } |
| 13 | |
| 14 | export class JSONFileSync<T> extends DataFileSync<T> { |
nothing calls this directly
no outgoing calls
no test coverage detected