YAML stringify()
speciously restricts input type to Record<string, unknown>
#4506
Labels
stringify()
speciously restricts input type to Record<string, unknown>
#4506
Describe the bug
YAML
stringify()
has signature:But restricting the input to
Record<string, unknown>
seems completely unnecessary, and is not enforced by the underlying implementation.Steps to Reproduce
yaml-types.ts
:Executes correctly:
$ deno run yaml-types.ts - 1 - 2 - 3 string 1.01 true
Fails type check:
Expected behavior
Type checking to succeed.
Environment
The text was updated successfully, but these errors were encountered: