Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3a07a56

Browse files
feat(type-utils): make isTypeReadonly's options param optional (typescript-eslint#4415)
1 parent 5f89728 commit 3a07a56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/type-utils/src/isTypeReadonly.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ function isTypeReadonlyRecurser(
243243
function isTypeReadonly(
244244
checker: ts.TypeChecker,
245245
type: ts.Type,
246-
options: ReadonlynessOptions,
246+
options: ReadonlynessOptions = readonlynessOptionsDefaults,
247247
): boolean {
248248
return (
249249
isTypeReadonlyRecurser(checker, type, options, new Set()) ===

0 commit comments

Comments
 (0)