@tanstack/vue-router
Version:
Modern and scalable routing for Vue applications
15 lines (14 loc) • 544 B
TypeScript
import { AnyRouter } from '@tanstack/router-core';
import { Component } from 'vue';
/** The router transport needs `<html>` as the outer root, not a fragment. */
export declare function warnUnlessHtmlRoot(html: string): void;
export declare const renderRouterToStream: ({ request, router, responseHeaders, App, }: {
request: Request;
router: AnyRouter;
responseHeaders: Headers;
App: Component;
}) => Promise<Response | {
response: Response;
serverSsrCleanup: "stream";
dispose: (reason?: unknown) => undefined;
}>;