@tsonic/js 10.0.38 → 10.0.40

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/package.json CHANGED
@@ -1,7 +1,21 @@
1
1
  {
2
2
  "name": "@tsonic/js",
3
- "version": "10.0.38",
3
+ "version": "10.0.40",
4
4
  "description": "TypeScript type definitions for JavaScript Runtime (JSRuntime) library",
5
+ "main": "index.d.ts",
6
+ "types": "index.d.ts",
7
+ "files": [
8
+ "index.d.ts",
9
+ "index.js",
10
+ "core-globals.d.ts",
11
+ "globals.d.ts",
12
+ "bindings.json",
13
+ "families.json",
14
+ "tsonic.bindings.json",
15
+ "tsonic.surface.json",
16
+ "README.md",
17
+ "LICENSE"
18
+ ],
5
19
  "type": "module",
6
20
  "keywords": [
7
21
  "javascript",
@@ -19,8 +33,8 @@
19
33
  "type": "git",
20
34
  "url": "https://github.com/tsoniclang/js.git"
21
35
  },
22
- "peerDependencies": {
23
- "@tsonic/dotnet": "10.0.35",
24
- "@tsonic/core": "10.0.35"
36
+ "dependencies": {
37
+ "@tsonic/dotnet": "10.0.37",
38
+ "@tsonic/core": "10.0.37"
25
39
  }
26
40
  }
@@ -1,13 +1,17 @@
1
1
  {
2
2
  "bindingVersion": 1,
3
3
  "packageName": "@tsonic/js",
4
- "surfaceMode": "js",
4
+ "surfaceMode": "@tsonic/js",
5
5
  "runtimePackages": [
6
6
  "@tsonic/js"
7
7
  ],
8
8
  "dotnet": {
9
9
  "packageReferences": [
10
- { "id": "Tsonic.JSRuntime", "version": "0.0.3", "types": "@tsonic/js" }
10
+ {
11
+ "id": "Tsonic.JSRuntime",
12
+ "version": "0.0.4",
13
+ "types": "@tsonic/js"
14
+ }
11
15
  ]
12
16
  }
13
17
  }
@@ -0,0 +1,9 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "id": "@tsonic/js",
4
+ "extends": [],
5
+ "requiredTypeRoots": [
6
+ "."
7
+ ],
8
+ "useStandardLib": false
9
+ }
@@ -1,79 +0,0 @@
1
- // Generated by tsbindgen - Extension Method Tables
2
- // This file contains method-table interfaces for C# extension methods.
3
- // Tables are scoped by declaring namespace (C# using semantics).
4
- // For each namespace with extension methods, this file exports an ExtensionMethods_<Namespace> helper.
5
-
6
- // Import namespace modules for cross-namespace type references
7
- import * as System from "@tsonic/dotnet/System/internal/index.js";
8
- import * as System_Collections_Generic from "@tsonic/dotnet/System.Collections.Generic/internal/index.js";
9
-
10
- // Import primitive type aliases
11
- import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
12
-
13
- // Import sticky extension scope helper
14
- import type { Rewrap } from '@tsonic/core/lang.js';
15
-
16
- // Import CLR type aliases for generic type arguments
17
- import * as System_Internal from "@tsonic/dotnet/System/internal/index.js";
18
-
19
- // Import unsafe type markers
20
- import type { ptr } from '@tsonic/core/types.js';
21
-
22
- // Internal helper types for sticky extension scopes
23
- type __TsonicExtMapOf<T> = T extends { __tsonic_ext?: infer M } ? M : {};
24
- type __TsonicMergeExtMaps<A, B> = A & B;
25
- type __TsonicWithExt<TShape, K extends string, TApplier> = { __tsonic_ext?: __TsonicMergeExtMaps<__TsonicExtMapOf<TShape>, { [P in K]: TApplier }> };
26
-
27
- // Extension method table for namespace: Tsonic.JSRuntime
28
- interface __TsonicExtMethods_Tsonic_JSRuntime {
29
- at(this: string, index: int): Rewrap<this, string>;
30
- charAt(this: string, index: int): Rewrap<this, string>;
31
- charCodeAt(this: string, index: int): Rewrap<this, int>;
32
- codePointAt(this: string, index: int): Rewrap<this, int>;
33
- concat(this: string, ...strings: string[]): Rewrap<this, string>;
34
- endsWith(this: string, searchString: string): Rewrap<this, boolean>;
35
- includes(this: string, searchString: string): Rewrap<this, boolean>;
36
- indexOf(this: string, searchString: string, position?: int): Rewrap<this, int>;
37
- isWellFormed(this: string): Rewrap<this, boolean>;
38
- lastIndexOf(this: string, searchString: string, position?: System.Nullable_1<System_Internal.Int32>): Rewrap<this, int>;
39
- length(this: string): Rewrap<this, int>;
40
- localeCompare(this: string, compareString: string): Rewrap<this, int>;
41
- match(this: string, pattern: string): Rewrap<this, System_Collections_Generic.List_1<System_Internal.String> | undefined>;
42
- matchAll(this: string, pattern: string): Rewrap<this, System_Collections_Generic.List_1<System_Collections_Generic.List_1<System_Internal.String>>>;
43
- normalize(this: string, form?: string): Rewrap<this, string>;
44
- padEnd(this: string, targetLength: int, padString?: string): Rewrap<this, string>;
45
- padStart(this: string, targetLength: int, padString?: string): Rewrap<this, string>;
46
- repeat(this: string, count: int): Rewrap<this, string>;
47
- replace(this: string, search: string, replacement: string): Rewrap<this, string>;
48
- replaceAll(this: string, search: string, replacement: string): Rewrap<this, string>;
49
- search(this: string, pattern: string): Rewrap<this, int>;
50
- slice(this: string, start: int, end?: System.Nullable_1<System_Internal.Int32>): Rewrap<this, string>;
51
- split(this: string, separator: string, limit?: System.Nullable_1<System_Internal.Int32>): Rewrap<this, System_Collections_Generic.List_1<System_Internal.String>>;
52
- startsWith(this: string, searchString: string): Rewrap<this, boolean>;
53
- substr(this: string, start: int, length?: System.Nullable_1<System_Internal.Int32>): Rewrap<this, string>;
54
- substring(this: string, start: int, end?: System.Nullable_1<System_Internal.Int32>): Rewrap<this, string>;
55
- toLocaleLowerCase(this: string): Rewrap<this, string>;
56
- toLocaleUpperCase(this: string): Rewrap<this, string>;
57
- toLowerCase(this: string): Rewrap<this, string>;
58
- toString(this: string): Rewrap<this, string>;
59
- toUpperCase(this: string): Rewrap<this, string>;
60
- toWellFormed(this: string): Rewrap<this, string>;
61
- trim(this: string): Rewrap<this, string>;
62
- trimEnd(this: string): Rewrap<this, string>;
63
- trimLeft(this: string): Rewrap<this, string>;
64
- trimRight(this: string): Rewrap<this, string>;
65
- trimStart(this: string): Rewrap<this, string>;
66
- valueOf(this: string): Rewrap<this, string>;
67
- }
68
-
69
- // Generic helper type for extension methods in namespace: Tsonic.JSRuntime
70
- interface __TsonicExtApplier_Tsonic_JSRuntime {
71
- __tsonic_shape: unknown;
72
- __tsonic_type: __TsonicExtMethods_Tsonic_JSRuntime;
73
- }
74
-
75
- export type ExtensionMethods_Tsonic_JSRuntime<TShape> =
76
- TShape extends null | undefined ? TShape
77
- : TShape extends void ? void
78
- : TShape & __TsonicWithExt<TShape, "Tsonic.JSRuntime", __TsonicExtApplier_Tsonic_JSRuntime> & __TsonicExtMethods_Tsonic_JSRuntime;
79
-