writeLocalJSONFile()
writeLocalJSONFile(content, pathSegments)
function writeLocalJSONFile<T, S>(content, ...pathSegments): Promise<void>
Write a local JSON file to the repository.
Type Parameters
| Type Parameter | Default type |
|---|---|
T | Record<string, unknown> |
S extends string[] | string[] |
Parameters
| Parameter | Type |
|---|---|
content | T |
...pathSegments | S |
Returns
Promise<void>
writeLocalJSONFile(content, filePath)
function writeLocalJSONFile<T, S>(content, filePath): Promise<void>
Type Parameters
| Type Parameter | Default type |
|---|---|
T | Record<string, unknown> |
S extends string | string |
Parameters
| Parameter | Type |
|---|---|
content | T |
filePath | S |
Returns
Promise<void>