From 457c9aed1fe708a932fcb1128af7503ffc4193a7 Mon Sep 17 00:00:00 2001 From: webfansplz <308241863@qq.com> Date: Tue, 20 Jul 2021 21:31:40 +0800 Subject: [PATCH] chore(type): remove unnecessary type assertion (#4150) --- packages/compiler-sfc/src/compileStyle.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/compiler-sfc/src/compileStyle.ts b/packages/compiler-sfc/src/compileStyle.ts index 4a87a2b033..2d918938a5 100644 --- a/packages/compiler-sfc/src/compileStyle.ts +++ b/packages/compiler-sfc/src/compileStyle.ts @@ -186,7 +186,7 @@ export function doCompileStyle( return result .then(result => ({ code: result.css || '', - map: result.map && (result.map.toJSON() as any), + map: result.map && result.map.toJSON(), errors, modules: cssModules, rawResult: result, @@ -211,7 +211,7 @@ export function doCompileStyle( return { code: code || ``, - map: outMap && (outMap.toJSON() as any), + map: outMap && outMap.toJSON(), errors, rawResult: result, dependencies -- 2.47.3