Skip to content

Commit 3874d87

Browse files
committed
Use the Record type instead of traditional dict decralation
Fix: #353 (comment)
1 parent 3afd2d2 commit 3874d87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rules/converters/ban-types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export const convertBanTypes: RuleConverter = tslintRule => {
55
message: string;
66
};
77

8-
const bannedTypesObj: { [key: string]: ConvertBanTypeArgument | null } = {};
8+
const bannedTypesObj: Record<string, ConvertBanTypeArgument | null> = {};
99

1010
for (const rule of tslintRule.ruleArguments) {
1111
const typ = rule[0];

0 commit comments

Comments
 (0)