Skip to main content

Function: loadJsonFile()

loadJsonFile<T>(filename): Promise<T>

Load the JSON file.

Type Parameters

T

T

Parameters

filename

string

The filename of the JSON file to load.

Returns

Promise<T>

The contents of the JSON file or null if it could not be loaded.