@nuxt/kit 3.9.1 → 3.9.2
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/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -336,16 +336,16 @@ declare function addServerScanDir(dirs: string | string[], opts?: {
|
|
|
336
336
|
/**
|
|
337
337
|
* Renders given template using lodash template during build into the project buildDir
|
|
338
338
|
*/
|
|
339
|
-
declare function addTemplate(_template: NuxtTemplate<
|
|
339
|
+
declare function addTemplate<T>(_template: NuxtTemplate<T> | string): ResolvedNuxtTemplate<T>;
|
|
340
340
|
/**
|
|
341
341
|
* Renders given types using lodash template during build into the project buildDir
|
|
342
342
|
* and register them as types.
|
|
343
343
|
*/
|
|
344
|
-
declare function addTypeTemplate(_template: NuxtTypeTemplate<
|
|
344
|
+
declare function addTypeTemplate<T>(_template: NuxtTypeTemplate<T>): ResolvedNuxtTemplate<T>;
|
|
345
345
|
/**
|
|
346
346
|
* Normalize a nuxt template object
|
|
347
347
|
*/
|
|
348
|
-
declare function normalizeTemplate(template: NuxtTemplate<
|
|
348
|
+
declare function normalizeTemplate<T>(template: NuxtTemplate<T> | string): ResolvedNuxtTemplate<T>;
|
|
349
349
|
/**
|
|
350
350
|
* Trigger rebuilding Nuxt templates
|
|
351
351
|
*
|
|
@@ -390,7 +390,7 @@ declare function tryRequireModule(id: string, opts?: RequireModuleOptions): any;
|
|
|
390
390
|
declare function tryResolveModule(id: string, url?: string | string[]): Promise<string | undefined>;
|
|
391
391
|
|
|
392
392
|
/** @deprecated */
|
|
393
|
-
declare function compileTemplate(template: NuxtTemplate
|
|
393
|
+
declare function compileTemplate<T>(template: NuxtTemplate<T>, ctx: any): Promise<string>;
|
|
394
394
|
/** @deprecated */
|
|
395
395
|
declare const templateUtils: {
|
|
396
396
|
serialize: (data: any) => string;
|
package/dist/index.d.ts
CHANGED
|
@@ -336,16 +336,16 @@ declare function addServerScanDir(dirs: string | string[], opts?: {
|
|
|
336
336
|
/**
|
|
337
337
|
* Renders given template using lodash template during build into the project buildDir
|
|
338
338
|
*/
|
|
339
|
-
declare function addTemplate(_template: NuxtTemplate<
|
|
339
|
+
declare function addTemplate<T>(_template: NuxtTemplate<T> | string): ResolvedNuxtTemplate<T>;
|
|
340
340
|
/**
|
|
341
341
|
* Renders given types using lodash template during build into the project buildDir
|
|
342
342
|
* and register them as types.
|
|
343
343
|
*/
|
|
344
|
-
declare function addTypeTemplate(_template: NuxtTypeTemplate<
|
|
344
|
+
declare function addTypeTemplate<T>(_template: NuxtTypeTemplate<T>): ResolvedNuxtTemplate<T>;
|
|
345
345
|
/**
|
|
346
346
|
* Normalize a nuxt template object
|
|
347
347
|
*/
|
|
348
|
-
declare function normalizeTemplate(template: NuxtTemplate<
|
|
348
|
+
declare function normalizeTemplate<T>(template: NuxtTemplate<T> | string): ResolvedNuxtTemplate<T>;
|
|
349
349
|
/**
|
|
350
350
|
* Trigger rebuilding Nuxt templates
|
|
351
351
|
*
|
|
@@ -390,7 +390,7 @@ declare function tryRequireModule(id: string, opts?: RequireModuleOptions): any;
|
|
|
390
390
|
declare function tryResolveModule(id: string, url?: string | string[]): Promise<string | undefined>;
|
|
391
391
|
|
|
392
392
|
/** @deprecated */
|
|
393
|
-
declare function compileTemplate(template: NuxtTemplate
|
|
393
|
+
declare function compileTemplate<T>(template: NuxtTemplate<T>, ctx: any): Promise<string>;
|
|
394
394
|
/** @deprecated */
|
|
395
395
|
declare const templateUtils: {
|
|
396
396
|
serialize: (data: any) => string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/kit",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.2",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/nuxt/nuxt.git",
|
|
@@ -31,16 +31,16 @@
|
|
|
31
31
|
"ignore": "^5.3.0",
|
|
32
32
|
"jiti": "^1.21.0",
|
|
33
33
|
"knitwork": "^1.0.0",
|
|
34
|
-
"mlly": "^1.
|
|
35
|
-
"pathe": "^1.1.
|
|
34
|
+
"mlly": "^1.5.0",
|
|
35
|
+
"pathe": "^1.1.2",
|
|
36
36
|
"pkg-types": "^1.0.3",
|
|
37
|
-
"scule": "^1.
|
|
37
|
+
"scule": "^1.2.0",
|
|
38
38
|
"semver": "^7.5.4",
|
|
39
39
|
"ufo": "^1.3.2",
|
|
40
40
|
"unctx": "^2.3.1",
|
|
41
41
|
"unimport": "^3.7.1",
|
|
42
42
|
"untyped": "^1.4.0",
|
|
43
|
-
"@nuxt/schema": "3.9.
|
|
43
|
+
"@nuxt/schema": "3.9.2"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/hash-sum": "1.0.2",
|