@tsonic/js 10.0.39 → 10.0.41
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/__internal/extensions/index.d.ts +2 -0
- package/bindings.json +61 -4
- package/core-globals.d.ts +206 -0
- package/globals.d.ts +241 -70
- package/index/bindings.json +1093 -507
- package/index/internal/index.d.ts +85 -11
- package/index.d.ts +12 -3
- package/package.json +16 -4
- package/tsonic.bindings.json +7 -2
- package/tsonic.surface.json +3 -1
|
@@ -7,11 +7,13 @@ import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint12
|
|
|
7
7
|
|
|
8
8
|
// Import types from other namespaces
|
|
9
9
|
import * as System_Collections_Generic_Internal from "@tsonic/dotnet/System.Collections.Generic/internal/index.js";
|
|
10
|
-
import type { IEnumerable_1, IEnumerator_1,
|
|
10
|
+
import type { IEnumerable_1, IEnumerator_1, List_1 } from "@tsonic/dotnet/System.Collections.Generic/internal/index.js";
|
|
11
11
|
import * as System_Collections_Internal from "@tsonic/dotnet/System.Collections/internal/index.js";
|
|
12
12
|
import type { IEnumerable } from "@tsonic/dotnet/System.Collections/internal/index.js";
|
|
13
|
+
import * as System_Runtime_Serialization_Internal from "@tsonic/dotnet/System.Runtime.Serialization/internal/index.js";
|
|
14
|
+
import type { ISerializable } from "@tsonic/dotnet/System.Runtime.Serialization/internal/index.js";
|
|
13
15
|
import * as System_Internal from "@tsonic/dotnet/System/internal/index.js";
|
|
14
|
-
import type { Action, Action_1, Action_2, Action_3, Boolean as ClrBoolean, Byte, Comparison_1, Double, Func_2, Func_3, Func_4, Func_5, Int16, Int32, Int64, Nullable_1, Object as ClrObject, SByte, Single, String as ClrString, UInt16, UInt32, ValueTuple_2, Void } from "@tsonic/dotnet/System/internal/index.js";
|
|
16
|
+
import type { Action, Action_1, Action_2, Action_3, Boolean as ClrBoolean, Byte, Comparison_1, Double, Exception, Func_2, Func_3, Func_4, Func_5, Int16, Int32, Int64, Nullable_1, Object as ClrObject, SByte, Single, String as ClrString, UInt16, UInt32, ValueTuple_2, Void } from "@tsonic/dotnet/System/internal/index.js";
|
|
15
17
|
|
|
16
18
|
export interface ArrayBuffer$instance {
|
|
17
19
|
readonly __tsonic_type_Tsonic_JSRuntime_ArrayBuffer: never;
|
|
@@ -90,6 +92,26 @@ export const Date: {
|
|
|
90
92
|
|
|
91
93
|
export type Date = Date$instance;
|
|
92
94
|
|
|
95
|
+
export interface Error$instance extends Exception {
|
|
96
|
+
readonly __tsonic_type_Tsonic_JSRuntime_Error: never;
|
|
97
|
+
|
|
98
|
+
readonly __tsonic_iface_System_Runtime_Serialization_ISerializable: never;
|
|
99
|
+
|
|
100
|
+
readonly message: string;
|
|
101
|
+
readonly name: string;
|
|
102
|
+
readonly stack: string | undefined;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
export const Error: {
|
|
107
|
+
new(): Error;
|
|
108
|
+
new(message: string): Error;
|
|
109
|
+
new(message: string, innerException: Exception): Error;
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
export type Error = Error$instance;
|
|
114
|
+
|
|
93
115
|
export interface Float32Array$instance {
|
|
94
116
|
readonly __tsonic_type_Tsonic_JSRuntime_Float32Array: never;
|
|
95
117
|
|
|
@@ -331,6 +353,7 @@ export const JSArray_1: {
|
|
|
331
353
|
new<T>(source: T[]): JSArray_1<T>;
|
|
332
354
|
new<T>(source: List_1<T>): JSArray_1<T>;
|
|
333
355
|
new<T>(source: IEnumerable_1<T>): JSArray_1<T>;
|
|
356
|
+
from<T, TSource, TResult>(iterable: IEnumerable_1<TSource>, mapFunc: Func_2<TSource, TResult>): JSArray_1<TResult>;
|
|
334
357
|
from<T, TSource, TResult>(iterable: IEnumerable_1<TSource>, mapFunc: Func_3<TSource, System_Internal.Int32, TResult>): JSArray_1<TResult>;
|
|
335
358
|
from<T>(iterable: IEnumerable_1<T>): JSArray_1<T>;
|
|
336
359
|
isArray<T>(value: unknown): boolean;
|
|
@@ -354,7 +377,7 @@ export interface Map_2$instance<K, V> {
|
|
|
354
377
|
forEach(callback: Action_2<V, K>): void;
|
|
355
378
|
forEach(callback: Action_1<V>): void;
|
|
356
379
|
get(key: K): V | undefined;
|
|
357
|
-
GetEnumerator(): IEnumerator_1<
|
|
380
|
+
GetEnumerator(): IEnumerator_1<ValueTuple_2<K, V>>;
|
|
358
381
|
has(key: K): boolean;
|
|
359
382
|
keys(): IEnumerable_1<K>;
|
|
360
383
|
set(key: K, value: V): Map_2<K, V>;
|
|
@@ -370,6 +393,24 @@ export const Map_2: {
|
|
|
370
393
|
|
|
371
394
|
export type Map_2<K, V> = Map_2$instance<K, V>;
|
|
372
395
|
|
|
396
|
+
export interface RangeError$instance extends Error {
|
|
397
|
+
readonly __tsonic_type_Tsonic_JSRuntime_RangeError: never;
|
|
398
|
+
|
|
399
|
+
readonly __tsonic_iface_System_Runtime_Serialization_ISerializable: never;
|
|
400
|
+
|
|
401
|
+
readonly name: string;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
export const RangeError: {
|
|
406
|
+
new(): RangeError;
|
|
407
|
+
new(message: string): RangeError;
|
|
408
|
+
new(message: string, innerException: Exception): RangeError;
|
|
409
|
+
};
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
export type RangeError = RangeError$instance;
|
|
413
|
+
|
|
373
414
|
export interface RegExp$instance {
|
|
374
415
|
readonly __tsonic_type_Tsonic_JSRuntime_RegExp: never;
|
|
375
416
|
|
|
@@ -650,13 +691,27 @@ export abstract class Globals$instance {
|
|
|
650
691
|
static isNaN(value: double): boolean;
|
|
651
692
|
static Number(value: unknown): double;
|
|
652
693
|
static parseFloat(str: string): double;
|
|
653
|
-
static parseInt(str: string, radix?: Nullable_1<System_Internal.Int32>):
|
|
694
|
+
static parseInt(str: string, radix?: Nullable_1<System_Internal.Int32>): double;
|
|
654
695
|
static String(value: unknown): string;
|
|
655
696
|
}
|
|
656
697
|
|
|
657
698
|
|
|
658
699
|
export type Globals = Globals$instance;
|
|
659
700
|
|
|
701
|
+
export abstract class JSArrayStatics$instance {
|
|
702
|
+
static from<TSource, TResult>(iterable: IEnumerable_1<TSource>, mapFunc: Func_2<TSource, TResult>): TResult[];
|
|
703
|
+
static from<TSource, TResult>(iterable: IEnumerable_1<TSource>, mapFunc: Func_3<TSource, System_Internal.Int32, TResult>): TResult[];
|
|
704
|
+
static from<T>(iterable: IEnumerable_1<T>): T[];
|
|
705
|
+
static from<TResult>(source: string, mapFunc: Func_2<System_Internal.String, TResult>): TResult[];
|
|
706
|
+
static from<TResult>(source: string, mapFunc: Func_3<System_Internal.String, System_Internal.Int32, TResult>): TResult[];
|
|
707
|
+
static from(source: string): string[];
|
|
708
|
+
static isArray(value: unknown): boolean;
|
|
709
|
+
static of<T>(...items: T[]): T[];
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
|
|
713
|
+
export type JSArrayStatics = JSArrayStatics$instance;
|
|
714
|
+
|
|
660
715
|
export abstract class JSON$instance {
|
|
661
716
|
static parse<T>(text: string): T;
|
|
662
717
|
static stringify(value: unknown): string;
|
|
@@ -729,12 +784,31 @@ export abstract class Number$instance {
|
|
|
729
784
|
static isNaN(value: double): boolean;
|
|
730
785
|
static isSafeInteger(value: double): boolean;
|
|
731
786
|
static parseFloat(str: string): double;
|
|
732
|
-
static parseInt(str: string, radix?: Nullable_1<System_Internal.Int32>):
|
|
787
|
+
static parseInt(str: string, radix?: Nullable_1<System_Internal.Int32>): double;
|
|
788
|
+
static toString(value: double): string;
|
|
789
|
+
static valueOf(value: double): double;
|
|
733
790
|
}
|
|
734
791
|
|
|
735
792
|
|
|
736
793
|
export type Number = Number$instance;
|
|
737
794
|
|
|
795
|
+
export abstract class Object$instance {
|
|
796
|
+
static entries(value: unknown): ValueTuple_2<System_Internal.String, unknown>[];
|
|
797
|
+
static keys(value: unknown): string[];
|
|
798
|
+
static values(value: unknown): (unknown | undefined)[];
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
|
|
802
|
+
export type Object = Object$instance;
|
|
803
|
+
|
|
804
|
+
export abstract class ProcessKeepAlive$instance {
|
|
805
|
+
static Acquire(): void;
|
|
806
|
+
static Release(): void;
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
|
|
810
|
+
export type ProcessKeepAlive = ProcessKeepAlive$instance;
|
|
811
|
+
|
|
738
812
|
export abstract class String$instance {
|
|
739
813
|
static at(str: string, index: int): string;
|
|
740
814
|
static charAt(str: string, index: int): string;
|
|
@@ -783,12 +857,12 @@ export abstract class String$instance {
|
|
|
783
857
|
export type String = String$instance;
|
|
784
858
|
|
|
785
859
|
export abstract class Timers$instance {
|
|
786
|
-
static clearInterval(id:
|
|
787
|
-
static clearTimeout(id:
|
|
788
|
-
static setInterval<T>(callback: Action_1<T>, intervalMs:
|
|
789
|
-
static setInterval(callback: Action, intervalMs:
|
|
790
|
-
static setTimeout<T>(callback: Action_1<T>, delayMs:
|
|
791
|
-
static setTimeout(callback: Action, delayMs?:
|
|
860
|
+
static clearInterval(id: double): void;
|
|
861
|
+
static clearTimeout(id: double): void;
|
|
862
|
+
static setInterval<T>(callback: Action_1<T>, intervalMs: double, arg: T): double;
|
|
863
|
+
static setInterval(callback: Action, intervalMs: double): double;
|
|
864
|
+
static setTimeout<T>(callback: Action_1<T>, delayMs: double, arg: T): double;
|
|
865
|
+
static setTimeout(callback: Action, delayMs?: double): double;
|
|
792
866
|
}
|
|
793
867
|
|
|
794
868
|
|
package/index.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/// <reference path="./core-globals.d.ts" />
|
|
2
|
+
/// <reference path="./globals.d.ts" />
|
|
3
|
+
|
|
1
4
|
// Generated by tsbindgen - Architecture
|
|
2
5
|
// Namespace: Tsonic.JSRuntime
|
|
3
6
|
// Facade - Public API Surface
|
|
@@ -9,14 +12,16 @@ import * as Internal from './index/internal/index.js';
|
|
|
9
12
|
import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
|
|
10
13
|
|
|
11
14
|
// Cross-namespace type imports for constraints
|
|
12
|
-
import type { IEnumerable as IEnumerable__System_Collections_Generic, IEnumerator,
|
|
15
|
+
import type { IEnumerable as IEnumerable__System_Collections_Generic, IEnumerator, List } from '@tsonic/dotnet/System.Collections.Generic.js';
|
|
13
16
|
import type { IEnumerable } from '@tsonic/dotnet/System.Collections.js';
|
|
14
|
-
import type { Action, Boolean as ClrBoolean, Byte, Comparison, Double, Func, Int16, Int32, Int64, Nullable, Object as ClrObject, SByte, Single, String as ClrString, UInt16, UInt32, ValueTuple, Void } from '@tsonic/dotnet/System.js';
|
|
17
|
+
import type { Action, Boolean as ClrBoolean, Byte, Comparison, Double, Exception, Func, Int16, Int32, Int64, Nullable, Object as ClrObject, SByte, Single, String as ClrString, UInt16, UInt32, ValueTuple, Void } from '@tsonic/dotnet/System.js';
|
|
18
|
+
import type { ISerializable } from '@tsonic/dotnet/System.Runtime.Serialization.js';
|
|
15
19
|
|
|
16
20
|
// Public API exports (curated - no internal $instance/$views leakage)
|
|
17
21
|
export { ArrayBuffer as ArrayBuffer } from './index/internal/index.js';
|
|
18
22
|
export { console$instance as console } from './index/internal/index.js';
|
|
19
23
|
export { Date as Date } from './index/internal/index.js';
|
|
24
|
+
export { Error as Error } from './index/internal/index.js';
|
|
20
25
|
export { Float32Array as Float32Array } from './index/internal/index.js';
|
|
21
26
|
export { Float64Array as Float64Array } from './index/internal/index.js';
|
|
22
27
|
export { Globals$instance as Globals } from './index/internal/index.js';
|
|
@@ -24,10 +29,14 @@ export { Int16Array as Int16Array } from './index/internal/index.js';
|
|
|
24
29
|
export { Int32Array as Int32Array } from './index/internal/index.js';
|
|
25
30
|
export { Int8Array as Int8Array } from './index/internal/index.js';
|
|
26
31
|
export { JSArray_1 as JSArray } from './index/internal/index.js';
|
|
32
|
+
export { JSArrayStatics$instance as JSArrayStatics } from './index/internal/index.js';
|
|
27
33
|
export { JSON$instance as JSON } from './index/internal/index.js';
|
|
28
34
|
export { Map_2 as Map } from './index/internal/index.js';
|
|
29
35
|
export { Math$instance as Math } from './index/internal/index.js';
|
|
30
36
|
export { Number$instance as Number } from './index/internal/index.js';
|
|
37
|
+
export { Object$instance as Object } from './index/internal/index.js';
|
|
38
|
+
export { ProcessKeepAlive$instance as ProcessKeepAlive } from './index/internal/index.js';
|
|
39
|
+
export { RangeError as RangeError } from './index/internal/index.js';
|
|
31
40
|
export { RegExp as RegExp } from './index/internal/index.js';
|
|
32
41
|
export { RegExpMatchResult as RegExpMatchResult } from './index/internal/index.js';
|
|
33
42
|
export { Set_1 as Set } from './index/internal/index.js';
|
|
@@ -54,7 +63,7 @@ export declare function isFinite(value: double): boolean;
|
|
|
54
63
|
export declare function isNaN(value: double): boolean;
|
|
55
64
|
export declare function Number(value: unknown): double;
|
|
56
65
|
export declare function parseFloat(str: string): double;
|
|
57
|
-
export declare function parseInt(str: string, radix?: Nullable<int>):
|
|
66
|
+
export declare function parseInt(str: string, radix?: Nullable<int>): double;
|
|
58
67
|
export declare function String(value: unknown): string;
|
|
59
68
|
export declare const Infinity: double;
|
|
60
69
|
export declare const NaN: double;
|
package/package.json
CHANGED
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsonic/js",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.41",
|
|
4
4
|
"description": "TypeScript type definitions for JavaScript Runtime (JSRuntime) library",
|
|
5
|
+
"main": "index.d.ts",
|
|
6
|
+
"types": "index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"**/*.d.ts",
|
|
9
|
+
"**/*.js",
|
|
10
|
+
"**/bindings.json",
|
|
11
|
+
"families.json",
|
|
12
|
+
"tsonic.bindings.json",
|
|
13
|
+
"tsonic.surface.json",
|
|
14
|
+
"README.md",
|
|
15
|
+
"LICENSE"
|
|
16
|
+
],
|
|
5
17
|
"type": "module",
|
|
6
18
|
"keywords": [
|
|
7
19
|
"javascript",
|
|
@@ -19,8 +31,8 @@
|
|
|
19
31
|
"type": "git",
|
|
20
32
|
"url": "https://github.com/tsoniclang/js.git"
|
|
21
33
|
},
|
|
22
|
-
"
|
|
23
|
-
"@tsonic/dotnet": "10.0.
|
|
24
|
-
"@tsonic/core": "10.0.
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@tsonic/dotnet": "10.0.37",
|
|
36
|
+
"@tsonic/core": "10.0.37"
|
|
25
37
|
}
|
|
26
38
|
}
|
package/tsonic.bindings.json
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"bindingVersion": 1,
|
|
3
3
|
"packageName": "@tsonic/js",
|
|
4
|
-
"surfaceMode": "js",
|
|
4
|
+
"surfaceMode": "@tsonic/js",
|
|
5
|
+
"assemblyName": "Tsonic.JSRuntime",
|
|
5
6
|
"runtimePackages": [
|
|
6
7
|
"@tsonic/js"
|
|
7
8
|
],
|
|
8
9
|
"dotnet": {
|
|
9
10
|
"packageReferences": [
|
|
10
|
-
{
|
|
11
|
+
{
|
|
12
|
+
"id": "Tsonic.JSRuntime",
|
|
13
|
+
"version": "0.0.5",
|
|
14
|
+
"types": "@tsonic/js"
|
|
15
|
+
}
|
|
11
16
|
]
|
|
12
17
|
}
|
|
13
18
|
}
|