@radomiej/compiler-types 3.0.9-types.1 → 3.1.0-types.beta.2
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 +1 -1
- package/types/String.d.ts +12 -0
- package/types/Symbol.d.ts +3 -0
package/package.json
CHANGED
package/types/String.d.ts
CHANGED
|
@@ -13,4 +13,16 @@ interface String extends Iterable<string> {
|
|
|
13
13
|
|
|
14
14
|
/** The current number of characters in the string. */
|
|
15
15
|
size(this: string): number;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Returns true if the string starts with the specified search string.
|
|
19
|
+
* @param searchString The characters to search for at the start of this string.
|
|
20
|
+
*/
|
|
21
|
+
startsWith(this: string, searchString: string): boolean;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Returns true if the string ends with the specified search string.
|
|
25
|
+
* @param searchString The characters to search for at the end of this string.
|
|
26
|
+
*/
|
|
27
|
+
endsWith(this: string, searchString: string): boolean;
|
|
16
28
|
}
|
package/types/Symbol.d.ts
CHANGED
|
@@ -15,5 +15,8 @@ interface Symbol {
|
|
|
15
15
|
interface SymbolConstructor {
|
|
16
16
|
readonly iterator: symbol;
|
|
17
17
|
readonly asyncIterator: symbol;
|
|
18
|
+
readonly hasInstance: symbol;
|
|
19
|
+
readonly dispose: symbol;
|
|
20
|
+
readonly asyncDispose: symbol;
|
|
18
21
|
}
|
|
19
22
|
declare const Symbol: SymbolConstructor;
|