@tsonic/js-globals 0.4.1 → 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.
- package/index.d.ts +3 -4
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -332,7 +332,7 @@ declare global {
|
|
|
332
332
|
isNaN(value: unknown): value is number;
|
|
333
333
|
isSafeInteger(value: unknown): value is number;
|
|
334
334
|
parseFloat(string: string): number;
|
|
335
|
-
parseInt(string: string, radix?:
|
|
335
|
+
parseInt(string: string, radix?: int): long | undefined;
|
|
336
336
|
}
|
|
337
337
|
|
|
338
338
|
const Number: NumberConstructor;
|
|
@@ -454,9 +454,8 @@ declare global {
|
|
|
454
454
|
* JSON object
|
|
455
455
|
*/
|
|
456
456
|
interface JSON {
|
|
457
|
-
parse(text: string
|
|
458
|
-
stringify(value:
|
|
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.
|
|
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": "
|
|
15
|
+
"@tsonic/core": "*"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"typescript": "^5.0.0"
|