Skip to content

Latest commit

 

History

History
78 lines (40 loc) · 1.2 KB

File metadata and controls

78 lines (40 loc) · 1.2 KB
hide_title true
custom_edit_url
pagination_prev
pagination_next

Home > @rushstack/node-core-library > JsonSchema > fromFile

JsonSchema.fromFile() method

Registers a JsonSchema that will be loaded from a file on disk.

Signature:

static fromFile(filename: string, options?: IJsonSchemaFromFileOptions): JsonSchema;

Parameters

Parameter

Type

Description

filename

string

options

IJsonSchemaFromFileOptions

(Optional)

Returns:

JsonSchema

Remarks

NOTE: An error occurs if the file does not exist; however, the file itself is not loaded or validated until it the schema is actually used.