Skip to content

Commit 25a5e39

Browse files
authoredApr 25, 2024
fix(MSW): fixed so that Function can be accepted with mock option (#1328)
1 parent 7feae35 commit 25a5e39

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎packages/orval/src/utils/options.ts

+1
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ export const normalizeOptions = async (
9393
let mock = outputOptions.mock ?? globalOptions.mock;
9494
if (typeof mock === 'boolean' && mock) {
9595
mock = DEFAULT_MOCK_OPTIONS;
96+
} else if (isFunction(mock)) {
9697
} else if (!mock) {
9798
mock = undefined;
9899
} else {

0 commit comments

Comments
 (0)
Please sign in to comment.