Show / Hide Table of Contents

    Class StringAsyncHost

    Package: grammarkdown

    An implementation of a CoreAsyncHost to simplify creating a host for a single file.

    Inheritance
    CoreAsyncHost
    StringAsyncHost

    Constructors

    constructor(file, content, hostFallback)

    Constructs a new instance of the StringAsyncHost class

    Declaration
    constructor(file: string, content: PromiseLike<string> | string, hostFallback?: CoreAsyncHost);
    Parameters
    file
    string

    The file name for the content.

    content
    PromiseLike<string> | string

    The content of the file.

    hostFallback
    CoreAsyncHost

    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: PromiseLike<string> | string;
    Property Value
    PromiseLike<string> | string

    file

    The file name for the content.

    Declaration
    readonly file: string;
    Property Value
    string

    • Improve this Doc
    Back to top Generated by DocFX