Skip to content

Commit

Permalink
Suggest using UnknownRecord from type-fest (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante authored Feb 12, 2025
1 parent 3024241 commit af22f88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion no-restricted-syntax.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = [
{
selector:
"TSTypeReference[typeName.name='Record'][typeParameters.params.0.type=TSStringKeyword][typeParameters.params.1.type=TSUnknownKeyword]",
message: "Use `UnknownObject` instead of `Record<string, unknown>`",
message: "Use `UnknownRecord` from 'type-fest' instead of `Record<string, unknown>`",
},
{
selector: "CallExpression[callee.property.name='allSettled']",
Expand Down

0 comments on commit af22f88

Please sign in to comment.