pi-lens
Version:
Real-time code feedback for pi — LSP, linters, formatters, type-checking, structural analysis & booboo
11 lines (10 loc) • 348 B
YAML
id: no-unsafe-dictionary-any
valid:
- "type T = Record<string, unknown>;"
- "function f(x: Record<string, string>) {}"
- "interface I { m: Record<string, number>; }"
invalid:
- "type T = Record<string, any>;"
- "function f(x: Record<string, any>) {}"
- "interface I { m: Record<string, any>; }"
- "const m: Record<number, any> = {};"