UNPKG

nuxt

Version:

Nuxt is a free and open-source framework with an intuitive and extendable way to create type-safe, performant and production-grade full-stack web applications and websites with Vue.js.

50 lines (49 loc) 1.3 kB
export interface NuxtRenderHTMLContext { island?: boolean; htmlAttrs: string[]; head: string[]; bodyAttrs: string[]; bodyPrepend: string[]; body: string[]; bodyAppend: string[]; } export interface NuxtIslandSlotResponse { props: Array<unknown>; fallback?: string; } export interface NuxtIslandClientResponse { html: string; props: unknown; chunk: string; slots?: Record<string, string>; } export interface NuxtIslandContext { id?: string; name: string; props?: Record<string, any>; url?: string; slots: Record<string, Omit<NuxtIslandSlotResponse, 'html' | 'fallback'>>; components: Record<string, Omit<NuxtIslandClientResponse, 'html'>>; } export interface NuxtIslandResponse { id?: string; html: string; head: { link: (Record<string, string>)[]; style: ({ innerHTML: string; key: string; })[]; }; props?: Record<string, Record<string, any>>; components?: Record<string, NuxtIslandClientResponse>; slots?: Record<string, NuxtIslandSlotResponse>; } export interface NuxtRenderResponse { body: string; statusCode: number; statusMessage?: string; headers: Record<string, string>; } declare const _default: any; export default _default;