From: webfansplz <308241863@qq.com> Date: Tue, 20 Jul 2021 13:31:40 +0000 (+0800) Subject: chore(type): remove unnecessary type assertion (#4150) X-Git-Tag: v3.2.0-beta.3~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=457c9aed1fe708a932fcb1128af7503ffc4193a7;p=thirdparty%2Fvuejs%2Fcore.git chore(type): remove unnecessary type assertion (#4150) --- 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