@tsonic/js 10.0.1 → 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/__internal/extensions/index.d.ts +67 -0
- package/index/bindings.json +515 -17
- package/index/internal/index.d.ts +47 -11
- package/index.d.ts +3 -0
- package/package.json +1 -1
|
@@ -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
|
+
|