Skip to content

Commit 8c209b7

Browse files
committed
chore: update typing in flow loader
1 parent d633101 commit 8c209b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/repack/src/loaders/flowLoader/flowLoader.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { LoaderContext } from '@rspack/core';
1+
import type { LoaderContext, RawSourceMap } from '@rspack/core';
22
import flowRemoveTypes from 'flow-remove-types';
33
import { getOptions } from './options.js';
44

@@ -12,5 +12,5 @@ export default function flowLoader(this: LoaderContext, source: string) {
1212
const result = flowRemoveTypes(source, options);
1313
const sourceMap = options.pretty ? result.generateMap() : undefined;
1414

15-
callback(null, result.toString(), sourceMap);
15+
callback(null, result.toString(), sourceMap as RawSourceMap);
1616
}

0 commit comments

Comments
 (0)