UNPKG

pi-lens

Version:

Real-time code feedback for pi — LSP, linters, formatters, type-checking, structural analysis & booboo

10 lines (9 loc) • 331 B
id: no-known-value-widening valid: - "const x = { a: 1 };" - "const x: Record<string, number> = other;" - "const x = other as Record<string, number>;" - "const x: Record<string, number> = getDefaults();" invalid: - "const x: Record<string, number> = { a: 1 };" - 'const x: Record<string, string> = { a: "b", c: "d" };'