@tsonic/js 10.0.1 → 10.0.6

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.
@@ -0,0 +1,84 @@
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 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
+ export interface __Ext_Tsonic_JSRuntime_String {
23
+ toUpperCase(): Rewrap<this, string>;
24
+ toLowerCase(): Rewrap<this, string>;
25
+ trim(): Rewrap<this, string>;
26
+ trimStart(): Rewrap<this, string>;
27
+ trimEnd(): Rewrap<this, string>;
28
+ substring(start: int, end?: System.Nullable_1<System_Internal.Int32>): Rewrap<this, string>;
29
+ slice(start: int, end?: System.Nullable_1<System_Internal.Int32>): Rewrap<this, string>;
30
+ indexOf(searchString: string, position?: int): Rewrap<this, int>;
31
+ lastIndexOf(searchString: string, position?: System.Nullable_1<System_Internal.Int32>): Rewrap<this, int>;
32
+ startsWith(searchString: string): Rewrap<this, boolean>;
33
+ endsWith(searchString: string): Rewrap<this, boolean>;
34
+ includes(searchString: string): Rewrap<this, boolean>;
35
+ replace(search: string, replacement: string): Rewrap<this, string>;
36
+ repeat(count: int): Rewrap<this, string>;
37
+ padStart(targetLength: int, padString?: string): Rewrap<this, string>;
38
+ padEnd(targetLength: int, padString?: string): Rewrap<this, string>;
39
+ charAt(index: int): Rewrap<this, string>;
40
+ charCodeAt(index: int): Rewrap<this, int>;
41
+ split(separator: string, limit?: System.Nullable_1<System_Internal.Int32>): Rewrap<this, System_Collections_Generic.List_1<System_Internal.String>>;
42
+ length(): Rewrap<this, int>;
43
+ at(index: int): Rewrap<this, string>;
44
+ codePointAt(index: int): Rewrap<this, int>;
45
+ concat(...strings: string[]): Rewrap<this, string>;
46
+ localeCompare(compareString: string): Rewrap<this, int>;
47
+ match(pattern: string): Rewrap<this, System_Collections_Generic.List_1<System_Internal.String> | undefined>;
48
+ matchAll(pattern: string): Rewrap<this, System_Collections_Generic.List_1<System_Collections_Generic.List_1<System_Internal.String>>>;
49
+ search(pattern: string): Rewrap<this, int>;
50
+ replaceAll(search: string, replacement: string): Rewrap<this, string>;
51
+ normalize(form?: string): Rewrap<this, string>;
52
+ substr(start: int, length?: System.Nullable_1<System_Internal.Int32>): Rewrap<this, string>;
53
+ toLocaleLowerCase(): Rewrap<this, string>;
54
+ toLocaleUpperCase(): Rewrap<this, string>;
55
+ toString(): Rewrap<this, string>;
56
+ valueOf(): Rewrap<this, string>;
57
+ isWellFormed(): Rewrap<this, boolean>;
58
+ toWellFormed(): Rewrap<this, string>;
59
+ trimLeft(): Rewrap<this, string>;
60
+ trimRight(): Rewrap<this, string>;
61
+ }
62
+
63
+ // Internal helper types for sticky extension scopes
64
+ type __TsonicExtMapOf<T> = T extends { __tsonic_ext?: infer M } ? M : {};
65
+ type __TsonicMergeExtMaps<A, B> = Omit<A, keyof B> & B;
66
+ type __TsonicWithExt<TShape, K extends string, TApplier> = { __tsonic_ext?: __TsonicMergeExtMaps<__TsonicExtMapOf<TShape>, { [P in K]: TApplier }> };
67
+ type __TsonicPreferExt<A, B> = Omit<A, keyof B> & B;
68
+
69
+ // Generic helper type for extension methods in namespace: Tsonic.JSRuntime
70
+ type __TsonicExtSurface_Tsonic_JSRuntime<TShape> =
71
+ (
72
+ (TShape extends string ? __Ext_Tsonic_JSRuntime_String : {})
73
+ );
74
+
75
+ interface __TsonicExtApplier_Tsonic_JSRuntime {
76
+ __tsonic_shape: unknown;
77
+ __tsonic_type: __TsonicExtSurface_Tsonic_JSRuntime<this["__tsonic_shape"]>;
78
+ }
79
+
80
+ export type ExtensionMethods_Tsonic_JSRuntime<TShape> =
81
+ TShape extends null | undefined ? TShape
82
+ : TShape extends void ? void
83
+ : TShape & __TsonicWithExt<TShape, "Tsonic.JSRuntime", __TsonicExtApplier_Tsonic_JSRuntime> & __TsonicExtSurface_Tsonic_JSRuntime<TShape>;
84
+