Skip to content

Commit

Permalink
types: use compiler definition from @vue/component-compiler-utils
Browse files Browse the repository at this point in the history
  • Loading branch information
kbtz committed Apr 24, 2019
1 parent 0f50267 commit b3b851e
Showing 1 changed file with 3 additions and 19 deletions.
22 changes: 3 additions & 19 deletions lib/index.d.ts
@@ -1,29 +1,13 @@
import { Plugin } from 'webpack'
import {
CompilerOptions,
parseComponent,
compile,
compileToFunctions,
ssrCompile,
ssrCompileToFunctions,
generateCodeFrame
} from 'vue-template-compiler'
import { VueTemplateCompiler } from '@vue/component-compiler-utils/lib/types'
import { CompilerOptions } from 'vue-template-compiler'

declare namespace VueLoader {
class VueLoaderPlugin extends Plugin {}

interface VueLoaderTemplateCompiler {
parseComponent?: typeof parseComponent
compile?: typeof compile
compileToFunctions?: typeof compileToFunctions
ssrCompile?: typeof ssrCompile
ssrCompileToFunctions?: typeof ssrCompileToFunctions
generateCodeFrame?: typeof generateCodeFrame
}

interface VueLoaderOptions {
transformAssetUrls?: { [tag: string]: string | Array<string> }
compiler?: VueLoaderTemplateCompiler
compiler?: VueTemplateCompiler
compilerOptions?: CompilerOptions
transpileOptions?: Object
optimizeSSR?: boolean
Expand Down

0 comments on commit b3b851e

Please sign in to comment.