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 return result
.then(result => ({ .then(result => ({
code: result.css || '', code: result.css || '',
map: result.map && (result.map.toJSON() as any), map: result.map && result.map.toJSON(),
errors, errors,
modules: cssModules, modules: cssModules,
rawResult: result, rawResult: result,
@ -211,7 +211,7 @@ export function doCompileStyle(
return { return {
code: code || ``, code: code || ``,
map: outMap && (outMap.toJSON() as any), map: outMap && outMap.toJSON(),
errors, errors,
rawResult: result, rawResult: result,
dependencies dependencies