Skip to content

Commit 34af007

Browse files
committed
fix: add type
1 parent 45802e8 commit 34af007

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/compiler-sfc/src/style/preprocessors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export interface StylePreprocessorResults {
2323

2424
// .scss/.sass processor
2525
const scss: StylePreprocessor = (source, map, options, load = require) => {
26-
const { pathToFileURL, fileURLToPath } = load('url')
26+
const { pathToFileURL, fileURLToPath }: typeof import('url') = load('url')
2727
const nodeSass = load('sass') as typeof import('sass')
2828
const data = getSource(source, options.filename, options.additionalData)
2929
const finalOptions: import('sass').StringOptions<'sync'> = {

0 commit comments

Comments
 (0)