Title: JSON.stringify without replacer with --strictNullChecks is not available · Issue #8729 · microsoft/TypeScript · GitHub
Open Graph Title: JSON.stringify without replacer with --strictNullChecks is not available · Issue #8729 · microsoft/TypeScript
X Title: JSON.stringify without replacer with --strictNullChecks is not available · Issue #8729 · microsoft/TypeScript
Description: TypeScript Version: nightly (1.9.0-dev.20160521.01) Code Currently JSON.stringify is defined as: stringify(value: any): string; stringify(value: any, replacer: (key: string, value: any) => any): string; stringify(value: any, replacer: an...
Open Graph Description: TypeScript Version: nightly (1.9.0-dev.20160521.01) Code Currently JSON.stringify is defined as: stringify(value: any): string; stringify(value: any, replacer: (key: string, value: any) => any): st...
X Description: TypeScript Version: nightly (1.9.0-dev.20160521.01) Code Currently JSON.stringify is defined as: stringify(value: any): string; stringify(value: any, replacer: (key: string, value: any) => any):...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/8729
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"JSON.stringify without replacer with --strictNullChecks is not available","articleBody":"**TypeScript Version:** \n\nnightly (1.9.0-dev.20160521.01)\n\n**Code**\n\nCurrently `JSON.stringify` is defined as:\n\n``` ts\nstringify(value: any): string;\nstringify(value: any, replacer: (key: string, value: any) => any): string;\nstringify(value: any, replacer: any[]): string;\nstringify(value: any, replacer: (key: string, value: any) => any, space: string | number): string;\nstringify(value: any, replacer: any[], space: string | number): string;\n```\n\nwhich makes it impossible to provide `space` argument without `replacer` if strictNullChecks is on:\n\n``` ts\nJSON.stringify(value, undefined, 2)\n```\n\nPerhaps, another signature can be added or replacer can be made `| undefined`?\n","author":{"url":"https://github.com/dchest","@type":"Person","name":"dchest"},"datePublished":"2016-05-21T17:42:41Z","url":"https://github.com/microsoft/TypeScript/issues/8729"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:cf88dc6b-491d-1bfd-f33f-58f4b07030b2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C76E:387B0D:1783DB4:20C0240:6AFA3EBA |
| html-safe-nonce | 86e0a9c3e755885f0ad09a9eb2e58ffcb5d7819ac80cbb08884a0259650a526d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNzZFOjM4N0IwRDoxNzgzREI0OjIwQzAyNDA6NkFGQTNFQkEiLCJ2aXNpdG9yX2lkIjoiNDgwNTM1NTM3NzAyMzEzOTUxNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b84ecd7408f1c41618a48d4f210a29b727340317f02b110a1db3c1577713ee98 |
| hovercard-subject-tag | issue:156113435 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/8729/issue_layout |
| twitter:image | https://opengraph.githubassets.com/707753b2c7800601500c6353bf8f27c5c77f18804c4426d9ded7d73f7ee13914/microsoft/TypeScript/issues/8729 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/707753b2c7800601500c6353bf8f27c5c77f18804c4426d9ded7d73f7ee13914/microsoft/TypeScript/issues/8729 |
| og:image:alt | TypeScript Version: nightly (1.9.0-dev.20160521.01) Code Currently JSON.stringify is defined as: stringify(value: any): string; stringify(value: any, replacer: (key: string, value: any) => any): st... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dchest |
| hostname | github.com |
| expected-hostname | github.com |
| None | 612d3e6ffd693e7ea8d9fcf452370995872baef31d825b1fedef704cd3d24ac7 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 072e34035c13c31543fba9f025cbbbda4210dae4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width