chore(type): remove unnecessary type assertion (#4150)

This commit is contained in:
webfansplz 2021-07-20 21:31:40 +08:00 committed by GitHub
parent 3ff94faca1
commit 457c9aed1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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