examples: upgrade and fix typescript configuration files (#5310)

This commit is contained in:
Romain Lanz 2019-03-21 20:51:56 +01:00 committed by Pooya Parsa
parent db200a3e69
commit 7100a2c6bc
5 changed files with 17 additions and 5 deletions

View File

@ -1,4 +1,6 @@
export default { import NuxtConfiguration from '@nuxt/config'
const config: NuxtConfiguration = {
hooks: { hooks: {
listen () { listen () {
if (process.send) { if (process.send) {
@ -7,3 +9,5 @@ export default {
} }
} }
} }
export default config

View File

@ -1 +1,5 @@
export default {} import NuxtConfiguration from '@nuxt/config'
const config: NuxtConfiguration = {}
export default config

View File

@ -1,4 +1,6 @@
export default { import NuxtConfiguration from '@nuxt/config'
const config: NuxtConfiguration = {
build: { build: {
loaders: { loaders: {
vueStyle: { vueStyle: {
@ -12,3 +14,5 @@ export default {
} }
} }
} }
export default config

View File

@ -1,4 +1,4 @@
import NuxtConfiguration from '@nuxt/config-edge' import NuxtConfiguration from '@nuxt/config'
const config: NuxtConfiguration = { const config: NuxtConfiguration = {
head: { head: {

View File

@ -1,4 +1,4 @@
import NuxtConfiguration from '@nuxt/config-edge' import NuxtConfiguration from '@nuxt/config'
const config: NuxtConfiguration = { const config: NuxtConfiguration = {
plugins: ['~/plugins/hello'] plugins: ['~/plugins/hello']