@tsonic/js-globals 0.4.2 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +2 -3
  2. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -454,9 +454,8 @@ declare global {
454
454
  * JSON object
455
455
  */
456
456
  interface JSON {
457
- parse(text: string, reviver?: (this: any, key: string, value: any) => any): any;
458
- stringify(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
459
- stringify(value: any, replacer?: (number | string)[] | null, space?: string | number): string;
457
+ parse<T>(text: string): T;
458
+ stringify<T>(value: T, replacer?: (number | string)[] | null, space?: string | int): string;
460
459
  }
461
460
 
462
461
  const JSON: JSON;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsonic/js-globals",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "Global type definitions for Tsonic JS mode (noLib: true, JavaScript semantics)",
5
5
  "main": "index.d.ts",
6
6
  "types": "index.d.ts",
@@ -12,7 +12,7 @@
12
12
  "typecheck": "tsc --noEmit"
13
13
  },
14
14
  "dependencies": {
15
- "@tsonic/core": "^0.1.0"
15
+ "@tsonic/core": "*"
16
16
  },
17
17
  "devDependencies": {
18
18
  "typescript": "^5.0.0"