@tsonic/js 10.0.34 → 10.0.35
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 +47 -51
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// Generated by tsbindgen - Extension Method
|
|
2
|
-
// This file contains
|
|
3
|
-
//
|
|
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
4
|
// For each namespace with extension methods, this file exports an ExtensionMethods_<Namespace> helper.
|
|
5
5
|
|
|
6
6
|
// Import namespace modules for cross-namespace type references
|
|
@@ -19,65 +19,61 @@ import * as System_Internal from "@tsonic/dotnet/System/internal/index.js";
|
|
|
19
19
|
// Import unsafe type markers
|
|
20
20
|
import type { ptr } from '@tsonic/core/types.js';
|
|
21
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
22
|
// Internal helper types for sticky extension scopes
|
|
64
23
|
type __TsonicExtMapOf<T> = T extends { __tsonic_ext?: infer M } ? M : {};
|
|
65
24
|
type __TsonicMergeExtMaps<A, B> = A & B;
|
|
66
25
|
type __TsonicWithExt<TShape, K extends string, TApplier> = { __tsonic_ext?: __TsonicMergeExtMaps<__TsonicExtMapOf<TShape>, { [P in K]: TApplier }> };
|
|
67
26
|
|
|
68
|
-
//
|
|
69
|
-
|
|
70
|
-
(
|
|
71
|
-
|
|
72
|
-
)
|
|
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
|
+
}
|
|
73
68
|
|
|
69
|
+
// Generic helper type for extension methods in namespace: Tsonic.JSRuntime
|
|
74
70
|
interface __TsonicExtApplier_Tsonic_JSRuntime {
|
|
75
71
|
__tsonic_shape: unknown;
|
|
76
|
-
__tsonic_type:
|
|
72
|
+
__tsonic_type: __TsonicExtMethods_Tsonic_JSRuntime;
|
|
77
73
|
}
|
|
78
74
|
|
|
79
75
|
export type ExtensionMethods_Tsonic_JSRuntime<TShape> =
|
|
80
76
|
TShape extends null | undefined ? TShape
|
|
81
77
|
: TShape extends void ? void
|
|
82
|
-
: TShape & __TsonicWithExt<TShape, "Tsonic.JSRuntime", __TsonicExtApplier_Tsonic_JSRuntime> &
|
|
78
|
+
: TShape & __TsonicWithExt<TShape, "Tsonic.JSRuntime", __TsonicExtApplier_Tsonic_JSRuntime> & __TsonicExtMethods_Tsonic_JSRuntime;
|
|
83
79
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsonic/js",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.35",
|
|
4
4
|
"description": "TypeScript type definitions for JavaScript Runtime (JSRuntime) library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"url": "https://github.com/tsoniclang/js.git"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"@tsonic/dotnet": "10.0.
|
|
24
|
-
"@tsonic/core": "10.0.
|
|
23
|
+
"@tsonic/dotnet": "10.0.35",
|
|
24
|
+
"@tsonic/core": "10.0.35"
|
|
25
25
|
}
|
|
26
26
|
}
|