Skip to content

Commit

Permalink
refactor: import types from packages
Browse files Browse the repository at this point in the history
  • Loading branch information
pooya parsa committed Jun 30, 2020
1 parent 6f69cb6 commit 04fd3b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 1 addition & 5 deletions packages/types/config/index.d.ts
@@ -1,5 +1,3 @@
import { ComponentsDir } from '@nuxt/components'

import { Transition } from '../app'
import { NuxtOptionsBuild } from './build'
import { NuxtOptionsCli } from './cli'
Expand All @@ -24,7 +22,7 @@ import { NuxtOptionsWatchers } from './watchers'
export { Module } from './module'
export { ServerMiddleware } from './server-middleware'

/**
/**
* @deprecated Use NuxtConfig instead
*/
export interface Configuration extends Record<string, any> {}
Expand All @@ -34,7 +32,6 @@ export interface NuxtOptions extends Configuration {
buildDir: string
buildModules: NuxtOptionsModule[]
cli: NuxtOptionsCli
components: boolean | Array<string | ComponentsDir>
css: string[]
dev: boolean
dir: { [key in 'app' | 'assets' | 'layouts' | 'middleware' | 'pages' | 'static' | 'store']?: string }
Expand Down Expand Up @@ -67,7 +64,6 @@ export interface NuxtOptions extends Configuration {
server: NuxtOptionsServer
serverMiddleware: NuxtOptionsServerMiddleware[]
srcDir: string
telemetry: boolean
transition: Transition
'vue.config': NuxtOptionsVueConfiguration
watch: string[]
Expand Down
2 changes: 2 additions & 0 deletions packages/types/index.d.ts
@@ -1,3 +1,5 @@
import '@nuxt/components'
import '@nuxt/telemetry'
import './process'

/**
Expand Down

0 comments on commit 04fd3b8

Please sign in to comment.