From cee536360e4a31c6706af9ae12a9fae25ed7bd83 Mon Sep 17 00:00:00 2001 From: Evan You Date: Thu, 2 Jan 2020 18:21:56 -0500 Subject: [PATCH] types: fix compiler-dom rolled up dts --- packages/compiler-dom/src/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/compiler-dom/src/index.ts b/packages/compiler-dom/src/index.ts index 8bbc774c240..f7732d61b4c 100644 --- a/packages/compiler-dom/src/index.ts +++ b/packages/compiler-dom/src/index.ts @@ -4,7 +4,8 @@ import { CompilerOptions, CodegenResult, isBuiltInType, - ParserOptions + ParserOptions, + RootNode } from '@vue/compiler-core' import { parserOptionsMinimal } from './parserOptionsMinimal' import { parserOptionsStandard } from './parserOptionsStandard' @@ -46,7 +47,7 @@ export function compile( }) } -export function parse(template: string, options: ParserOptions = {}) { +export function parse(template: string, options: ParserOptions = {}): RootNode { return baseParse(template, { ...parserOptions, ...options