solid-js 1.3.0-beta.3 → 1.3.0-beta.4

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.
@@ -1,31 +1,24 @@
1
- export declare type PipeToWritableResults = {
2
- startWriting: () => void;
3
- write: (v: string) => void;
4
- abort: () => void;
5
- };
6
1
  export declare function renderToString<T>(fn: () => T, options?: {
7
- eventNames?: string[];
8
2
  nonce?: string;
3
+ renderId?: string;
9
4
  }): string;
10
5
  export declare function renderToStringAsync<T>(fn: () => T, options?: {
11
- eventNames?: string[];
12
6
  timeoutMs?: number;
13
7
  nonce?: string;
8
+ renderId?: string;
14
9
  }): Promise<string>;
15
- export declare function pipeToNodeWritable<T>(fn: () => T, writable: {
16
- write: (v: string) => void;
17
- }, options?: {
18
- eventNames?: string[];
10
+ export declare function renderToStream<T>(fn: () => T, options?: {
19
11
  nonce?: string;
20
- onReady?: (r: PipeToWritableResults) => void;
21
- onComplete?: (r: PipeToWritableResults) => void | Promise<void>;
22
- }): void;
23
- export declare function pipeToWritable<T>(fn: () => T, writable: WritableStream, options?: {
24
- eventNames?: string[];
25
- nonce?: string;
26
- onReady?: (r: PipeToWritableResults) => void;
27
- onComplete?: (r: PipeToWritableResults) => void | Promise<void>;
28
- }): void;
12
+ dataOnly?: boolean;
13
+ renderId?: string;
14
+ onCompleteShell?: () => void;
15
+ onCompleteAll?: () => void;
16
+ }): {
17
+ pipe: (writable: {
18
+ write: (v: string) => void;
19
+ }) => void;
20
+ pipeTo: (writable: WritableStream) => void;
21
+ };
29
22
  export declare function ssr(template: string[] | string, ...nodes: any[]): {
30
23
  t: string;
31
24
  };
@@ -41,3 +34,26 @@ export declare function ssrBoolean(key: string, value: boolean): string;
41
34
  export declare function ssrHydrationKey(): string;
42
35
  export declare function escape(html: string): string;
43
36
  export declare function generateHydrationScript(): string;
37
+ export declare type LegacyResults = {
38
+ startWriting: () => void;
39
+ };
40
+ /**
41
+ * @deprecated Replaced by renderToStream
42
+ */
43
+ export declare function pipeToWritable<T>(fn: () => T, writable: WritableStream, options?: {
44
+ nonce?: string;
45
+ dataOnly?: boolean;
46
+ onReady?: (res: LegacyResults) => void;
47
+ onCompleteAll?: () => void;
48
+ }): void;
49
+ /**
50
+ * @deprecated Replaced by renderToStream
51
+ */
52
+ export declare function pipeToNodeWritable<T>(fn: () => T, writable: {
53
+ write: (v: string) => void;
54
+ }, options?: {
55
+ nonce?: string;
56
+ dataOnly?: boolean;
57
+ onReady?: (res: LegacyResults) => void;
58
+ onCompleteAll?: () => void;
59
+ }): void;