@sveltejs/kit 1.0.0-next.358 → 1.0.0-next.360

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.
package/types/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /// <reference types="svelte" />
2
2
  /// <reference types="vite/client" />
3
3
 
4
- import './ambient';
4
+ import './ambient.js';
5
5
 
6
6
  import { CompileOptions } from 'svelte/types/compiler/interfaces';
7
7
  import {
@@ -17,8 +17,8 @@ import {
17
17
  ResponseHeaders,
18
18
  RouteDefinition,
19
19
  TrailingSlash
20
- } from './private';
21
- import { SSRNodeLoader, SSRRoute, ValidatedConfig } from './internal';
20
+ } from './private.js';
21
+ import { SSRNodeLoader, SSRRoute, ValidatedConfig } from './internal.js';
22
22
 
23
23
  export interface Adapter {
24
24
  name: string;
@@ -284,8 +284,8 @@ export interface SSRManifest {
284
284
  _: {
285
285
  entry: {
286
286
  file: string;
287
- js: string[];
288
- css: string[];
287
+ imports: string[];
288
+ stylesheets: string[];
289
289
  };
290
290
  nodes: SSRNodeLoader[];
291
291
  routes: SSRRoute[];
@@ -12,7 +12,7 @@ import {
12
12
  ResolveOptions,
13
13
  Server,
14
14
  SSRManifest
15
- } from './index';
15
+ } from './index.js';
16
16
  import {
17
17
  HttpMethod,
18
18
  JSONObject,
@@ -20,7 +20,7 @@ import {
20
20
  RequestOptions,
21
21
  ResponseHeaders,
22
22
  TrailingSlash
23
- } from './private';
23
+ } from './private.js';
24
24
 
25
25
  export interface ServerModule {
26
26
  Server: typeof InternalServer;
@@ -51,8 +51,8 @@ export interface BuildData {
51
51
  chunks: OutputChunk[];
52
52
  entry: {
53
53
  file: string;
54
- js: string[];
55
- css: string[];
54
+ imports: string[];
55
+ stylesheets: string[];
56
56
  };
57
57
  vite_manifest: import('vite').Manifest;
58
58
  };
@@ -230,13 +230,13 @@ export interface SSRNode {
230
230
  /** index into the `components` array in client-manifest.js */
231
231
  index: number;
232
232
  /** client-side module URL for this component */
233
- entry: string;
234
- /** external CSS files */
235
- css: string[];
233
+ file: string;
236
234
  /** external JS files */
237
- js: string[];
235
+ imports: string[];
236
+ /** external CSS files */
237
+ stylesheets: string[];
238
238
  /** inlined styles */
239
- styles?: Record<string, string>;
239
+ inline_styles?: () => MaybePromise<Record<string, string>>;
240
240
  }
241
241
 
242
242
  export type SSRNodeLoader = () => Promise<SSRNode>;