@bedrock-apis/env-types 1.0.0-rc.1 → 1.1.0-rc
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 +11 -7
- package/lib.d.ts +31 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -40,24 +40,28 @@ Add the package to the `types` field in your `tsconfig.json`:
|
|
|
40
40
|
```json
|
|
41
41
|
{
|
|
42
42
|
"compilerOptions": {
|
|
43
|
+
// ... your properties
|
|
43
44
|
"noLib": true,
|
|
44
45
|
"types": ["@bedrock-apis/env-types"]
|
|
45
46
|
}
|
|
46
47
|
}
|
|
47
48
|
```
|
|
48
49
|
|
|
49
|
-
##
|
|
50
|
-
|
|
51
|
-
- Generate a basic set of methods and properties for each global class.
|
|
52
|
-
- Compare and extend these definitions against TypeScript's standard global types.
|
|
50
|
+
## Future Plan
|
|
53
51
|
- Continuously update with help of contributions.
|
|
54
52
|
|
|
55
53
|
## Contributing
|
|
56
54
|
|
|
57
|
-
This package is in **
|
|
55
|
+
This package is in **release candidate**, and we welcome contributions from the community. You can help by:
|
|
58
56
|
|
|
59
|
-
*
|
|
60
|
-
* Fixing inconsistencies between types and engine environment apis.
|
|
57
|
+
* Cloning and checking of all types matches latest engine environment
|
|
61
58
|
* Suggesting new features or improvements.
|
|
62
59
|
|
|
60
|
+
### How to repo
|
|
61
|
+
* Clone repo
|
|
62
|
+
* Install dependencies
|
|
63
|
+
* Move cwd to "./dev/"
|
|
64
|
+
* Run "node bds-gen.ts" to update generated file
|
|
65
|
+
* Run "node scrapple.ts" to bundle all /lib/ files to single /lib.d.ts
|
|
66
|
+
|
|
63
67
|
Please visit our [GitHub repository](https://github.com/bedrock-apis/env-types) to submit issues or pull requests.
|
package/lib.d.ts
CHANGED
|
@@ -8520,7 +8520,23 @@ interface InternalErrorConstructor {
|
|
|
8520
8520
|
(message?: string): InternalError;
|
|
8521
8521
|
readonly prototype: InternalError;
|
|
8522
8522
|
}
|
|
8523
|
-
declare var InternalError:
|
|
8523
|
+
declare var InternalError: InternalErrorConstructor;
|
|
8524
|
+
|
|
8525
|
+
interface SetConstructor {
|
|
8526
|
+
/**
|
|
8527
|
+
* @deprecated This function is not supposed to be on Set constructor ref: https://github.com/quickjs-ng/quickjs/issues/714
|
|
8528
|
+
*/
|
|
8529
|
+
groupBy<K, T>(
|
|
8530
|
+
items: Iterable<T>,
|
|
8531
|
+
keySelector: (item: T, index: number) => K,
|
|
8532
|
+
): Map<K, T[]>;
|
|
8533
|
+
}
|
|
8534
|
+
|
|
8535
|
+
interface Date {
|
|
8536
|
+
getYear(): number;
|
|
8537
|
+
setYear(year: number): number;
|
|
8538
|
+
toGMTString(): string;
|
|
8539
|
+
}
|
|
8524
8540
|
|
|
8525
8541
|
interface Object {
|
|
8526
8542
|
/**
|
|
@@ -8529,8 +8545,20 @@ interface Object {
|
|
|
8529
8545
|
* @protected
|
|
8530
8546
|
* @ignore
|
|
8531
8547
|
*/
|
|
8532
|
-
get __proto__(): object;
|
|
8533
|
-
set __proto__(prototype: object);
|
|
8548
|
+
get __proto__(): object | null;
|
|
8549
|
+
set __proto__(prototype: object | null);
|
|
8550
|
+
|
|
8551
|
+
/** @deprecated */
|
|
8552
|
+
__defineGetter__(v: PropertyKey, getter: () => any): void;
|
|
8553
|
+
|
|
8554
|
+
/** @deprecated */
|
|
8555
|
+
__defineSetter__(v: PropertyKey, setter: (val: any) => void): void;
|
|
8556
|
+
|
|
8557
|
+
/** @deprecated */
|
|
8558
|
+
__lookupGetter__(v: PropertyKey): (() => any) | undefined;
|
|
8559
|
+
|
|
8560
|
+
/** @deprecated */
|
|
8561
|
+
__lookupSetter__(v: PropertyKey): ((val: any) => void) | undefined;
|
|
8534
8562
|
}
|
|
8535
8563
|
|
|
8536
8564
|
interface ObjectConstructor {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bedrock-apis/env-types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0-rc",
|
|
4
4
|
"description": "A collection of environment-specific TypeScript type definitions for engines with non-standard versioning and selective feature support across versions.",
|
|
5
5
|
"main": "",
|
|
6
6
|
"types": "lib.d.ts",
|