Skip to content

Commit 65306ee

Browse files
committed
refactor(restrict-dependency-ranges): tweak types
1 parent 336c942 commit 65306ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rules/restrict-dependency-ranges.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ interface Option {
2222

2323
type Options = [Option | Option[] | undefined];
2424

25-
const RANGE_TYPES = ["caret", "pin", "tilde"];
26-
type RangeType = "caret" | "pin" | "tilde";
25+
const RANGE_TYPES = ["caret", "pin", "tilde"] as const;
26+
type RangeType = (typeof RANGE_TYPES)[number];
2727

2828
const schemaOptions = {
2929
additionalProperties: false,

0 commit comments

Comments
 (0)