Nyora (JavaScript) - v0.1.1
    Preparing search index...

    Interface RuntimeLike

    The minimal runtime surface a Nyora client depends on.

    Declaring it as an interface lets tests inject a stub runtime without a real jsdom window or any network access.

    interface RuntimeLike {
        sources(): Record<string, unknown>[];
        call(
            sourceId: string,
            method: string,
            args: Record<string, unknown>,
        ): Promise<unknown>;
        reload(): void;
        close(): void;
    }
    Index

    Methods

    • Return the raw bundled source catalog.

      Returns Record<string, unknown>[]

    • Invoke a parser method and return its decoded result.

      Parameters

      • sourceId: string
      • method: string
      • args: Record<string, unknown>

      Returns Promise<unknown>

    • Rebuild the runtime from the (possibly updated) bundle.

      Returns void