Skip to main content

writeLocalJSONFile()

writeLocalJSONFile(content, pathSegments)​

function writeLocalJSONFile<T, S>(content, ...pathSegments): Promise<void>

Write a local JSON file to the repository.

Type Parameters​

Type ParameterDefault type
TRecord<string, unknown>
S extends string[]string[]

Parameters​

ParameterType
contentT
...pathSegmentsS

Returns​

Promise<void>

writeLocalJSONFile(content, filePath)​

function writeLocalJSONFile<T, S>(content, filePath): Promise<void>

Type Parameters​

Type ParameterDefault type
TRecord<string, unknown>
S extends stringstring

Parameters​

ParameterType
contentT
filePathS

Returns​

Promise<void>