@nuxt/types
Advanced tools
Comparing version 2.14.7 to 2.14.8
import { ServerResponse } from 'http' | ||
import { IncomingMessage } from 'connect' | ||
import { IncomingMessage, NextFunction } from 'connect' | ||
import Vue, { ComponentOptions } from 'vue' | ||
import VueRouter, { Location, Route } from 'vue-router' | ||
import { Store } from 'vuex' | ||
import { NuxtOptions } from '../config' | ||
import { NuxtRuntimeConfig } from '../config/runtime' | ||
@@ -42,2 +44,3 @@ | ||
query: Route['query'] | ||
next?: NextFunction | ||
req: IncomingMessage | ||
@@ -48,2 +51,27 @@ res: ServerResponse | ||
redirect(location: Location): void | ||
ssrContext?: { | ||
req: Context['req'] | ||
res: Context['res'] | ||
url: string | ||
target: NuxtOptions['target'] | ||
spa?: boolean | ||
modern: boolean | ||
runtimeConfig: { | ||
public: NuxtRuntimeConfig | ||
private: NuxtRuntimeConfig | ||
} | ||
redirected: boolean | ||
next: NextFunction | ||
beforeRenderFns: Array<() => any> | ||
nuxt: { | ||
layout: string | ||
data: Array<Record<string, any>> | ||
fetch: Array<Record<string, any>> | ||
error: any | ||
state: Array<Record<string, any>> | ||
serverRendered: boolean | ||
routePath: string | ||
config: NuxtRuntimeConfig | ||
} | ||
} | ||
error(params: NuxtError): void | ||
@@ -128,2 +156,4 @@ nuxtState: NuxtState | ||
$loading: NuxtLoading | ||
nbFetching: number | ||
isFetching: boolean | ||
context: Context | ||
@@ -130,0 +160,0 @@ error(params: NuxtError): void |
@@ -9,2 +9,2 @@ /** | ||
export type NuxtOptionsHead = MetaInfo | ||
export type NuxtOptionsHead = MetaInfo | (() => MetaInfo) |
@@ -69,3 +69,5 @@ import { Transition } from '../app' | ||
transition: Transition | ||
'vue.config': NuxtOptionsVueConfiguration | ||
vue: { | ||
config?: NuxtOptionsVueConfiguration | ||
} | ||
watch: string[] | ||
@@ -72,0 +74,0 @@ watchers: NuxtOptionsWatchers |
{ | ||
"name": "@nuxt/types", | ||
"version": "2.14.7", | ||
"description": "Nuxt.js types", | ||
"version": "2.14.8", | ||
"description": "Nuxt types", | ||
"repository": "nuxt/nuxt.js", | ||
@@ -13,3 +13,3 @@ "license": "MIT", | ||
"@types/autoprefixer": "^9.7.2", | ||
"@types/babel__core": "^7.1.10", | ||
"@types/babel__core": "^7.1.12", | ||
"@types/compression": "^1.7.0", | ||
@@ -21,10 +21,10 @@ "@types/connect": "^3.4.33", | ||
"@types/less": "^3.0.1", | ||
"@types/node": "^12.12.67", | ||
"@types/node": "^12.19.8", | ||
"@types/node-sass": "^4.11.1", | ||
"@types/optimize-css-assets-webpack-plugin": "^5.0.1", | ||
"@types/pug": "^2.0.4", | ||
"@types/serve-static": "^1.13.5", | ||
"@types/serve-static": "^1.13.8", | ||
"@types/terser-webpack-plugin": "^2.2.0", | ||
"@types/webpack": "^4.41.22", | ||
"@types/webpack-bundle-analyzer": "^3.8.0", | ||
"@types/webpack": "^4.41.25", | ||
"@types/webpack-bundle-analyzer": "^3.9.0", | ||
"@types/webpack-dev-middleware": "^3.7.2", | ||
@@ -31,0 +31,0 @@ "@types/webpack-hot-middleware": "^2.25.3" |
28836
793
Updated@types/babel__core@^7.1.12
Updated@types/node@^12.19.8
Updated@types/serve-static@^1.13.8
Updated@types/webpack@^4.41.25