@tsonic/js 0.1.3 → 10.0.5

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 CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  TypeScript type definitions for the JavaScript Runtime (JSRuntime) library.
4
4
 
5
+ ## Versioning
6
+
7
+ This repo is versioned by **.NET major**:
8
+
9
+ - **.NET 10** → `versions/10/` → npm: `@tsonic/js@10.x`
10
+
11
+ When publishing, run: `npm publish versions/10 --access public`
12
+
5
13
  ## Features
6
14
 
7
15
  - **JavaScript-like APIs for .NET** - Array, Map, Set, Date, Math, JSON, and more
@@ -0,0 +1,67 @@
1
+ // Generated by tsbindgen - Extension Method Buckets
2
+ // This file contains bucket interfaces for C# extension methods.
3
+ // Buckets 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 CLR type aliases for generic type arguments
14
+ import * as System_Internal from "@tsonic/dotnet/System/internal/index.js";
15
+
16
+ // Import unsafe type markers
17
+ import type { ptr } from '@tsonic/core/types.js';
18
+
19
+ export interface __Ext_Tsonic_JSRuntime_String {
20
+ toUpperCase(): ExtensionMethods_Tsonic_JSRuntime<string>;
21
+ toLowerCase(): ExtensionMethods_Tsonic_JSRuntime<string>;
22
+ trim(): ExtensionMethods_Tsonic_JSRuntime<string>;
23
+ trimStart(): ExtensionMethods_Tsonic_JSRuntime<string>;
24
+ trimEnd(): ExtensionMethods_Tsonic_JSRuntime<string>;
25
+ substring(start: int, end?: System.Nullable_1<System_Internal.Int32>): ExtensionMethods_Tsonic_JSRuntime<string>;
26
+ slice(start: int, end?: System.Nullable_1<System_Internal.Int32>): ExtensionMethods_Tsonic_JSRuntime<string>;
27
+ indexOf(searchString: string, position?: int): ExtensionMethods_Tsonic_JSRuntime<int>;
28
+ lastIndexOf(searchString: string, position?: System.Nullable_1<System_Internal.Int32>): ExtensionMethods_Tsonic_JSRuntime<int>;
29
+ startsWith(searchString: string): ExtensionMethods_Tsonic_JSRuntime<boolean>;
30
+ endsWith(searchString: string): ExtensionMethods_Tsonic_JSRuntime<boolean>;
31
+ includes(searchString: string): ExtensionMethods_Tsonic_JSRuntime<boolean>;
32
+ replace(search: string, replacement: string): ExtensionMethods_Tsonic_JSRuntime<string>;
33
+ repeat(count: int): ExtensionMethods_Tsonic_JSRuntime<string>;
34
+ padStart(targetLength: int, padString?: string): ExtensionMethods_Tsonic_JSRuntime<string>;
35
+ padEnd(targetLength: int, padString?: string): ExtensionMethods_Tsonic_JSRuntime<string>;
36
+ charAt(index: int): ExtensionMethods_Tsonic_JSRuntime<string>;
37
+ charCodeAt(index: int): ExtensionMethods_Tsonic_JSRuntime<int>;
38
+ split(separator: string, limit?: System.Nullable_1<System_Internal.Int32>): ExtensionMethods_Tsonic_JSRuntime<System_Collections_Generic.List_1<System_Internal.String>>;
39
+ length(): ExtensionMethods_Tsonic_JSRuntime<int>;
40
+ at(index: int): ExtensionMethods_Tsonic_JSRuntime<string>;
41
+ codePointAt(index: int): ExtensionMethods_Tsonic_JSRuntime<int>;
42
+ concat(...strings: string[]): ExtensionMethods_Tsonic_JSRuntime<string>;
43
+ localeCompare(compareString: string): ExtensionMethods_Tsonic_JSRuntime<int>;
44
+ match(pattern: string): ExtensionMethods_Tsonic_JSRuntime<System_Collections_Generic.List_1<System_Internal.String> | undefined>;
45
+ matchAll(pattern: string): ExtensionMethods_Tsonic_JSRuntime<System_Collections_Generic.List_1<System_Collections_Generic.List_1<System_Internal.String>>>;
46
+ search(pattern: string): ExtensionMethods_Tsonic_JSRuntime<int>;
47
+ replaceAll(search: string, replacement: string): ExtensionMethods_Tsonic_JSRuntime<string>;
48
+ normalize(form?: string): ExtensionMethods_Tsonic_JSRuntime<string>;
49
+ substr(start: int, length?: System.Nullable_1<System_Internal.Int32>): ExtensionMethods_Tsonic_JSRuntime<string>;
50
+ toLocaleLowerCase(): ExtensionMethods_Tsonic_JSRuntime<string>;
51
+ toLocaleUpperCase(): ExtensionMethods_Tsonic_JSRuntime<string>;
52
+ toString(): ExtensionMethods_Tsonic_JSRuntime<string>;
53
+ valueOf(): ExtensionMethods_Tsonic_JSRuntime<string>;
54
+ isWellFormed(): ExtensionMethods_Tsonic_JSRuntime<boolean>;
55
+ toWellFormed(): ExtensionMethods_Tsonic_JSRuntime<string>;
56
+ trimLeft(): ExtensionMethods_Tsonic_JSRuntime<string>;
57
+ trimRight(): ExtensionMethods_Tsonic_JSRuntime<string>;
58
+ }
59
+
60
+ // Generic helper type for extension methods in namespace: Tsonic.JSRuntime
61
+ export type ExtensionMethods_Tsonic_JSRuntime<TShape> =
62
+ TShape extends null | undefined ? TShape
63
+ : TShape extends void ? void
64
+ : TShape & (
65
+ (TShape extends string ? __Ext_Tsonic_JSRuntime_String : {})
66
+ );
67
+