Logo Xantham

FileRead Type

What `readFile` found. The server distinguishes all three, and the distinction is the reason the reply is an object rather than a bare string: `Missing` stops resolution at this path, where `FallBack` sends it on to the real filesystem. Getting the two the wrong way round silently changes module resolution.

Union cases

Union case Description

Content content

Full Usage: Content content

Parameters:
    content : string

The file's content, `Content ""` included - an empty file is not a missing one.

content : string

FallBack

Full Usage: FallBack

Not answered here; the server reads the real filesystem.

Missing

Full Usage: Missing

The file does not exist, and the real filesystem is not consulted.

Instance members

Instance member Description

this.IsContent

Full Usage: this.IsContent

Returns: bool
Returns: bool

this.IsFallBack

Full Usage: this.IsFallBack

Returns: bool
Returns: bool

this.IsMissing

Full Usage: this.IsMissing

Returns: bool
Returns: bool

Type something to start searching.