@tsonic/js 10.0.45 → 10.0.47
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/README.md +7 -5
- package/bindings.json +2 -0
- package/globals.d.ts +3 -1
- package/package.json +3 -3
- package/tsonic.bindings.json +1 -1
package/README.md
CHANGED
|
@@ -15,8 +15,7 @@ This package is part of Tsonic: https://tsonic.org.
|
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
17
|
mkdir my-app && cd my-app
|
|
18
|
-
npx --yes tsonic@latest init --surface js
|
|
19
|
-
npx --yes tsonic@latest add npm @tsonic/js
|
|
18
|
+
npx --yes tsonic@latest init --surface @tsonic/js
|
|
20
19
|
```
|
|
21
20
|
|
|
22
21
|
```ts
|
|
@@ -38,10 +37,13 @@ npm run dev
|
|
|
38
37
|
npx --yes tsonic@latest add npm @tsonic/js
|
|
39
38
|
```
|
|
40
39
|
|
|
41
|
-
If the workspace is not already JS surface, set
|
|
40
|
+
If the workspace is not already JS surface, set `surface` in
|
|
41
|
+
`tsonic.workspace.json` to `@tsonic/js`:
|
|
42
42
|
|
|
43
|
-
```
|
|
44
|
-
|
|
43
|
+
```json
|
|
44
|
+
{
|
|
45
|
+
"surface": "@tsonic/js"
|
|
46
|
+
}
|
|
45
47
|
```
|
|
46
48
|
|
|
47
49
|
## Optional direct imports
|
package/bindings.json
CHANGED
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
"assembly": "Tsonic.JSRuntime",
|
|
47
47
|
"type": "Tsonic.JSRuntime.Number",
|
|
48
48
|
"staticType": "Tsonic.JSRuntime.Number",
|
|
49
|
+
"csharpName": "Globals.Number",
|
|
49
50
|
"typeSemantics": {
|
|
50
51
|
"contributesTypeIdentity": true
|
|
51
52
|
}
|
|
@@ -100,6 +101,7 @@
|
|
|
100
101
|
"assembly": "Tsonic.JSRuntime",
|
|
101
102
|
"type": "Tsonic.JSRuntime.String",
|
|
102
103
|
"staticType": "Tsonic.JSRuntime.String",
|
|
104
|
+
"csharpName": "Globals.String",
|
|
103
105
|
"typeSemantics": {
|
|
104
106
|
"contributesTypeIdentity": true
|
|
105
107
|
}
|
package/globals.d.ts
CHANGED
|
@@ -53,6 +53,7 @@ declare global {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
interface StringConstructor {
|
|
56
|
+
(value?: unknown): string;
|
|
56
57
|
fromCharCode(...codes: int[]): string;
|
|
57
58
|
fromCodePoint(...codePoints: int[]): string;
|
|
58
59
|
}
|
|
@@ -78,6 +79,7 @@ declare global {
|
|
|
78
79
|
}
|
|
79
80
|
|
|
80
81
|
interface NumberConstructor {
|
|
82
|
+
(value?: unknown): number;
|
|
81
83
|
readonly EPSILON: number;
|
|
82
84
|
readonly MAX_SAFE_INTEGER: number;
|
|
83
85
|
readonly MAX_VALUE: number;
|
|
@@ -257,7 +259,7 @@ declare global {
|
|
|
257
259
|
new(): Date;
|
|
258
260
|
new(value: string | number | long): Date;
|
|
259
261
|
now(): long;
|
|
260
|
-
parse(s: string):
|
|
262
|
+
parse(s: string): number;
|
|
261
263
|
}
|
|
262
264
|
|
|
263
265
|
interface Uint8ArrayConstructor {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsonic/js",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.47",
|
|
4
4
|
"description": "TypeScript type definitions for JavaScript Runtime (JSRuntime) library",
|
|
5
5
|
"main": "index.d.ts",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"url": "https://github.com/tsoniclang/js.git"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@tsonic/dotnet": "10.0.
|
|
36
|
-
"@tsonic/core": "10.0.
|
|
35
|
+
"@tsonic/dotnet": "10.0.40",
|
|
36
|
+
"@tsonic/core": "10.0.40"
|
|
37
37
|
}
|
|
38
38
|
}
|