Skip to content

Commit

Permalink
fix(type-utils): make isTypeReadonly's options param optional
Browse files Browse the repository at this point in the history
fix #4410
  • Loading branch information
RebeccaStevens committed Jan 9, 2022
1 parent 97c0e86 commit 974858a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/type-utils/src/isTypeReadonly.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ function isTypeReadonlyRecurser(
function isTypeReadonly(
checker: ts.TypeChecker,
type: ts.Type,
options: ReadonlynessOptions,
options: ReadonlynessOptions = readonlynessOptionsDefaults,
): boolean {
return (
isTypeReadonlyRecurser(checker, type, options, new Set()) ===
Expand Down

0 comments on commit 974858a

Please sign in to comment.