@tsonic/js 0.1.2
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/LICENSE +21 -0
- package/README.md +102 -0
- package/__build/scripts/generate.sh +116 -0
- package/families.json +1 -0
- package/index/bindings.json +12273 -0
- package/index/internal/index.d.ts +735 -0
- package/index/internal/metadata.json +7741 -0
- package/index.d.ts +58 -0
- package/index.js +9 -0
- package/package.json +25 -0
- package/tsconfig.json +18 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
// Generated by tsbindgen - Architecture
|
|
2
|
+
// Namespace: Tsonic.JSRuntime
|
|
3
|
+
// Facade - Public API Surface
|
|
4
|
+
|
|
5
|
+
// Import internal declarations
|
|
6
|
+
import * as Internal from './index/internal/index.js';
|
|
7
|
+
|
|
8
|
+
// Primitive type aliases for flattened exports
|
|
9
|
+
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
|
+
|
|
11
|
+
// Namespace imports for flattened exports
|
|
12
|
+
import * as System_Internal from "@tsonic/dotnet/System.js";
|
|
13
|
+
|
|
14
|
+
// Cross-namespace type imports for constraints
|
|
15
|
+
import type { IEnumerable as IEnumerable__System_Collections_Generic, IEnumerator, KeyValuePair, List } from '@tsonic/dotnet/System.Collections.Generic.js';
|
|
16
|
+
import type { IEnumerable } from '@tsonic/dotnet/System.Collections.js';
|
|
17
|
+
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';
|
|
18
|
+
|
|
19
|
+
// Public API exports (curated - no internal $instance/$views leakage)
|
|
20
|
+
export { ArrayBuffer as ArrayBuffer } from './index/internal/index.js';
|
|
21
|
+
export { console$instance as console } from './index/internal/index.js';
|
|
22
|
+
export { Date as Date } from './index/internal/index.js';
|
|
23
|
+
export { Float32Array as Float32Array } from './index/internal/index.js';
|
|
24
|
+
export { Float64Array as Float64Array } from './index/internal/index.js';
|
|
25
|
+
export { Globals$instance as Globals } from './index/internal/index.js';
|
|
26
|
+
export { Int16Array as Int16Array } from './index/internal/index.js';
|
|
27
|
+
export { Int32Array as Int32Array } from './index/internal/index.js';
|
|
28
|
+
export { Int8Array as Int8Array } from './index/internal/index.js';
|
|
29
|
+
export { JSArray_1 as JSArray } from './index/internal/index.js';
|
|
30
|
+
export { JSON$instance as JSON } from './index/internal/index.js';
|
|
31
|
+
export { Map_2 as Map } from './index/internal/index.js';
|
|
32
|
+
export { Math$instance as Math } from './index/internal/index.js';
|
|
33
|
+
export { Number$instance as Number } from './index/internal/index.js';
|
|
34
|
+
export { RegExp as RegExp } from './index/internal/index.js';
|
|
35
|
+
export { RegExpMatchResult as RegExpMatchResult } from './index/internal/index.js';
|
|
36
|
+
export { Set_1 as Set } from './index/internal/index.js';
|
|
37
|
+
export { String$instance as String } from './index/internal/index.js';
|
|
38
|
+
export { Timers$instance as Timers } from './index/internal/index.js';
|
|
39
|
+
export { Uint16Array as Uint16Array } from './index/internal/index.js';
|
|
40
|
+
export { Uint32Array as Uint32Array } from './index/internal/index.js';
|
|
41
|
+
export { Uint8Array as Uint8Array } from './index/internal/index.js';
|
|
42
|
+
export { Uint8ClampedArray as Uint8ClampedArray } from './index/internal/index.js';
|
|
43
|
+
export { WeakMap_2 as WeakMap } from './index/internal/index.js';
|
|
44
|
+
export { WeakSet_1 as WeakSet } from './index/internal/index.js';
|
|
45
|
+
|
|
46
|
+
// Flattened exports from static classes
|
|
47
|
+
// From Tsonic.JSRuntime.Globals
|
|
48
|
+
export declare function boolean_(value: unknown): boolean;
|
|
49
|
+
export declare function decodeURI(uri: string): string;
|
|
50
|
+
export declare function decodeURIComponent(component: string): string;
|
|
51
|
+
export declare function encodeURI(uri: string): string;
|
|
52
|
+
export declare function encodeURIComponent(component: string): string;
|
|
53
|
+
export declare function isFinite(value: double): boolean;
|
|
54
|
+
export declare function isNaN(value: double): boolean;
|
|
55
|
+
export declare function number_(value: unknown): double;
|
|
56
|
+
export declare function parseFloat(str: string): double;
|
|
57
|
+
export declare function parseInt(str: string, radix?: Nullable<System_Internal.Int32>): Nullable<System_Internal.Int64>;
|
|
58
|
+
export declare function string_(value: unknown): string;
|
package/index.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Generated by tsbindgen - Architecture
|
|
2
|
+
// Namespace: Tsonic.JSRuntime
|
|
3
|
+
// Module Stub - Do Not Execute
|
|
4
|
+
|
|
5
|
+
throw new Error(
|
|
6
|
+
'Cannot import CLR namespace Tsonic.JSRuntime in JavaScript runtime. ' +
|
|
7
|
+
'This module provides TypeScript type definitions only. ' +
|
|
8
|
+
'Actual implementation requires .NET runtime via Tsonic compiler.'
|
|
9
|
+
);
|
package/package.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@tsonic/js",
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "TypeScript type definitions for JavaScript Runtime (JSRuntime) library",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"javascript",
|
|
8
|
+
"typescript",
|
|
9
|
+
"types",
|
|
10
|
+
"tsonic",
|
|
11
|
+
"dotnet",
|
|
12
|
+
"clr",
|
|
13
|
+
"jsruntime"
|
|
14
|
+
],
|
|
15
|
+
"author": "Tsonic Team",
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "https://github.com/tsoniclang/js.git"
|
|
20
|
+
},
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"@tsonic/dotnet": "^0.8.4",
|
|
23
|
+
"@tsonic/core": "^0.6.0"
|
|
24
|
+
}
|
|
25
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2022",
|
|
4
|
+
"module": "ESNext",
|
|
5
|
+
"lib": ["ES2022"],
|
|
6
|
+
"moduleResolution": "node",
|
|
7
|
+
"strict": true,
|
|
8
|
+
"noEmit": true,
|
|
9
|
+
"skipLibCheck": false,
|
|
10
|
+
"types": []
|
|
11
|
+
},
|
|
12
|
+
"include": [
|
|
13
|
+
"**/*.d.ts"
|
|
14
|
+
],
|
|
15
|
+
"exclude": [
|
|
16
|
+
"node_modules"
|
|
17
|
+
]
|
|
18
|
+
}
|