@absolutejs/absolute 0.8.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Readable } from "node:stream";
|
|
2
|
+
import type { Component } from "svelte";
|
|
3
|
+
export type RenderPipeableOptions = {
|
|
4
|
+
bootstrapScriptContent?: string;
|
|
5
|
+
bootstrapScripts?: string[];
|
|
6
|
+
bootstrapModules?: string[];
|
|
7
|
+
nonce?: string;
|
|
8
|
+
onError?: (error: unknown) => void;
|
|
9
|
+
progressiveChunkSize?: number;
|
|
10
|
+
signal?: AbortSignal;
|
|
11
|
+
};
|
|
12
|
+
export declare const renderToPipeableStream: <Props extends Record<string, unknown> = Record<string, never>>(component: Component<Props>, props: Props, { bootstrapScriptContent, bootstrapScripts, bootstrapModules, nonce, onError, progressiveChunkSize, signal }?: RenderPipeableOptions) => Readable;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Component } from "svelte";
|
|
2
|
+
export type RenderStringOptions = {
|
|
3
|
+
bootstrapScriptContent?: string;
|
|
4
|
+
bootstrapScripts?: string[];
|
|
5
|
+
bootstrapModules?: string[];
|
|
6
|
+
nonce?: string;
|
|
7
|
+
onError?: (error: unknown) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const renderToString: <Props extends Record<string, unknown> = Record<string, never>>(component: Component<Props>, props: Props, { bootstrapScriptContent, bootstrapScripts, bootstrapModules, nonce, onError }?: RenderStringOptions) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const escapeScriptContent: (content: string) => string;
|