Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve signature for JSON.parse #27737

Open
mpcref opened this issue Jan 20, 2025 · 0 comments
Open

Improve signature for JSON.parse #27737

mpcref opened this issue Jan 20, 2025 · 0 comments
Labels
types Issues related to TypeScript types

Comments

@mpcref
Copy link

mpcref commented Jan 20, 2025

Version: Deno 2.1.5

Current signature for JSON.parse:

JSON.parse(text: string, reviver?: (this: any, key: string, value: any) => any): any
  1. The reviver's this parameter should be optional
  2. The reviver should have an optional context parameter
@marvinhagemeister marvinhagemeister added the types Issues related to TypeScript types label Jan 20, 2025
@mpcref mpcref changed the title Missing overloads for JSON.parse Improve signature for JSON.parse Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
types Issues related to TypeScript types
Projects
None yet
Development

No branches or pull requests

2 participants