Class StringSyncHost
Package: grammarkdown
An implementation of a CoreSyncHost to simplify creating a host for a single file.
Constructors
constructor(file, content, hostFallback)
Constructs a new instance of the StringSyncHost
class
Declaration
constructor(file: string, content: string, hostFallback?: CoreSyncHost);
Parameters
- file
- string
The file name for the content.
- content
- string
The content of the file.
- hostFallback
- CoreSyncHost
An optional host to use as a fallback for operations not supported by this host.
Properties
content
The content of the file.
Declaration
readonly content: string;
Property Value
string
file
The file name for the content.
Declaration
readonly file: string;
Property Value
string