strict-ts-lib-v6.0 0.6.2 → 0.6.4
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/CHANGELOG.md +64 -0
- package/NOTICE +16 -0
- package/README.md +6 -0
- package/libs/decorators/index.d.ts +33 -4
- package/libs/decorators/legacy/index.d.ts +22 -0
- package/libs/dom/asynciterable/index.d.ts +22 -0
- package/libs/dom/index.d.ts +22 -0
- package/libs/dom/iterable/index.d.ts +22 -0
- package/libs/es2015/collection/index.d.ts +22 -0
- package/libs/es2015/core/index.d.ts +22 -0
- package/libs/es2015/generator/index.d.ts +22 -0
- package/libs/es2015/index.d.ts +22 -0
- package/libs/es2015/iterable/index.d.ts +22 -0
- package/libs/es2015/promise/index.d.ts +22 -0
- package/libs/es2015/proxy/index.d.ts +22 -0
- package/libs/es2015/reflect/index.d.ts +24 -1
- package/libs/es2015/symbol/index.d.ts +22 -0
- package/libs/es2015/symbol-wellknown/index.d.ts +34 -3
- package/libs/es2016/array-include/index.d.ts +22 -0
- package/libs/es2016/full/index.d.ts +22 -0
- package/libs/es2016/index.d.ts +22 -0
- package/libs/es2016/intl/index.d.ts +22 -0
- package/libs/es2017/arraybuffer/index.d.ts +22 -0
- package/libs/es2017/date/index.d.ts +22 -0
- package/libs/es2017/full/index.d.ts +22 -0
- package/libs/es2017/index.d.ts +22 -0
- package/libs/es2017/intl/index.d.ts +22 -0
- package/libs/es2017/object/index.d.ts +22 -0
- package/libs/es2017/sharedmemory/index.d.ts +22 -0
- package/libs/es2017/string/index.d.ts +22 -0
- package/libs/es2017/typedarrays/index.d.ts +22 -0
- package/libs/es2018/asyncgenerator/index.d.ts +22 -0
- package/libs/es2018/asynciterable/index.d.ts +22 -0
- package/libs/es2018/full/index.d.ts +22 -0
- package/libs/es2018/index.d.ts +22 -0
- package/libs/es2018/intl/index.d.ts +22 -0
- package/libs/es2018/promise/index.d.ts +22 -0
- package/libs/es2018/regexp/index.d.ts +22 -0
- package/libs/es2019/array/index.d.ts +22 -0
- package/libs/es2019/full/index.d.ts +22 -0
- package/libs/es2019/index.d.ts +22 -0
- package/libs/es2019/intl/index.d.ts +22 -0
- package/libs/es2019/object/index.d.ts +21 -0
- package/libs/es2019/string/index.d.ts +22 -0
- package/libs/es2019/symbol/index.d.ts +22 -0
- package/libs/es2020/bigint/index.d.ts +22 -0
- package/libs/es2020/date/index.d.ts +22 -0
- package/libs/es2020/full/index.d.ts +22 -0
- package/libs/es2020/index.d.ts +22 -0
- package/libs/es2020/intl/index.d.ts +22 -0
- package/libs/es2020/number/index.d.ts +22 -0
- package/libs/es2020/promise/index.d.ts +22 -0
- package/libs/es2020/sharedmemory/index.d.ts +22 -0
- package/libs/es2020/string/index.d.ts +22 -0
- package/libs/es2020/symbol-wellknown/index.d.ts +22 -0
- package/libs/es2021/full/index.d.ts +22 -0
- package/libs/es2021/index.d.ts +22 -0
- package/libs/es2021/intl/index.d.ts +22 -0
- package/libs/es2021/promise/index.d.ts +22 -0
- package/libs/es2021/string/index.d.ts +26 -1
- package/libs/es2021/weakref/index.d.ts +22 -0
- package/libs/es2022/array/index.d.ts +22 -0
- package/libs/es2022/error/index.d.ts +22 -0
- package/libs/es2022/full/index.d.ts +22 -0
- package/libs/es2022/index.d.ts +22 -0
- package/libs/es2022/intl/index.d.ts +22 -0
- package/libs/es2022/object/index.d.ts +21 -0
- package/libs/es2022/regexp/index.d.ts +22 -0
- package/libs/es2022/string/index.d.ts +22 -0
- package/libs/es2023/array/index.d.ts +22 -0
- package/libs/es2023/collection/index.d.ts +22 -0
- package/libs/es2023/full/index.d.ts +22 -0
- package/libs/es2023/index.d.ts +22 -0
- package/libs/es2023/intl/index.d.ts +22 -0
- package/libs/es2024/arraybuffer/index.d.ts +22 -0
- package/libs/es2024/collection/index.d.ts +22 -0
- package/libs/es2024/full/index.d.ts +22 -0
- package/libs/es2024/index.d.ts +22 -0
- package/libs/es2024/object/index.d.ts +22 -0
- package/libs/es2024/promise/index.d.ts +22 -0
- package/libs/es2024/regexp/index.d.ts +22 -0
- package/libs/es2024/sharedmemory/index.d.ts +22 -0
- package/libs/es2024/string/index.d.ts +22 -0
- package/libs/es2025/collection/index.d.ts +22 -0
- package/libs/es2025/float16/index.d.ts +22 -0
- package/libs/es2025/full/index.d.ts +22 -0
- package/libs/es2025/index.d.ts +22 -0
- package/libs/es2025/intl/index.d.ts +22 -0
- package/libs/es2025/iterator/index.d.ts +22 -0
- package/libs/es2025/promise/index.d.ts +22 -0
- package/libs/es2025/regexp/index.d.ts +22 -0
- package/libs/es5/index.d.ts +71 -13
- package/libs/es6/index.d.ts +22 -0
- package/libs/esnext/array/index.d.ts +22 -0
- package/libs/esnext/collection/index.d.ts +22 -0
- package/libs/esnext/date/index.d.ts +22 -0
- package/libs/esnext/decorators/index.d.ts +22 -0
- package/libs/esnext/disposable/index.d.ts +22 -0
- package/libs/esnext/error/index.d.ts +22 -0
- package/libs/esnext/full/index.d.ts +22 -0
- package/libs/esnext/index.d.ts +22 -0
- package/libs/esnext/intl/index.d.ts +22 -0
- package/libs/esnext/sharedmemory/index.d.ts +22 -0
- package/libs/esnext/temporal/index.d.ts +22 -0
- package/libs/esnext/typedarrays/index.d.ts +22 -0
- package/libs/scripthost/index.d.ts +22 -0
- package/libs/webworker/asynciterable/index.d.ts +22 -0
- package/libs/webworker/importscripts/index.d.ts +22 -0
- package/libs/webworker/index.d.ts +22 -0
- package/libs/webworker/iterable/index.d.ts +22 -0
- package/libs-branded/decorators/index.d.ts +33 -4
- package/libs-branded/decorators/legacy/index.d.ts +22 -0
- package/libs-branded/dom/asynciterable/index.d.ts +22 -0
- package/libs-branded/dom/index.d.ts +22 -0
- package/libs-branded/dom/iterable/index.d.ts +22 -0
- package/libs-branded/es2015/collection/index.d.ts +22 -0
- package/libs-branded/es2015/core/index.d.ts +22 -0
- package/libs-branded/es2015/generator/index.d.ts +22 -0
- package/libs-branded/es2015/index.d.ts +22 -0
- package/libs-branded/es2015/iterable/index.d.ts +22 -0
- package/libs-branded/es2015/promise/index.d.ts +22 -0
- package/libs-branded/es2015/proxy/index.d.ts +22 -0
- package/libs-branded/es2015/reflect/index.d.ts +24 -1
- package/libs-branded/es2015/symbol/index.d.ts +22 -0
- package/libs-branded/es2015/symbol-wellknown/index.d.ts +34 -3
- package/libs-branded/es2016/array-include/index.d.ts +22 -0
- package/libs-branded/es2016/full/index.d.ts +22 -0
- package/libs-branded/es2016/index.d.ts +22 -0
- package/libs-branded/es2016/intl/index.d.ts +22 -0
- package/libs-branded/es2017/arraybuffer/index.d.ts +22 -0
- package/libs-branded/es2017/date/index.d.ts +22 -0
- package/libs-branded/es2017/full/index.d.ts +22 -0
- package/libs-branded/es2017/index.d.ts +22 -0
- package/libs-branded/es2017/intl/index.d.ts +22 -0
- package/libs-branded/es2017/object/index.d.ts +22 -0
- package/libs-branded/es2017/sharedmemory/index.d.ts +22 -0
- package/libs-branded/es2017/string/index.d.ts +22 -0
- package/libs-branded/es2017/typedarrays/index.d.ts +22 -0
- package/libs-branded/es2018/asyncgenerator/index.d.ts +22 -0
- package/libs-branded/es2018/asynciterable/index.d.ts +22 -0
- package/libs-branded/es2018/full/index.d.ts +22 -0
- package/libs-branded/es2018/index.d.ts +22 -0
- package/libs-branded/es2018/intl/index.d.ts +22 -0
- package/libs-branded/es2018/promise/index.d.ts +22 -0
- package/libs-branded/es2018/regexp/index.d.ts +22 -0
- package/libs-branded/es2019/array/index.d.ts +22 -0
- package/libs-branded/es2019/full/index.d.ts +22 -0
- package/libs-branded/es2019/index.d.ts +22 -0
- package/libs-branded/es2019/intl/index.d.ts +22 -0
- package/libs-branded/es2019/object/index.d.ts +21 -0
- package/libs-branded/es2019/string/index.d.ts +22 -0
- package/libs-branded/es2019/symbol/index.d.ts +22 -0
- package/libs-branded/es2020/bigint/index.d.ts +22 -0
- package/libs-branded/es2020/date/index.d.ts +22 -0
- package/libs-branded/es2020/full/index.d.ts +22 -0
- package/libs-branded/es2020/index.d.ts +22 -0
- package/libs-branded/es2020/intl/index.d.ts +22 -0
- package/libs-branded/es2020/number/index.d.ts +22 -0
- package/libs-branded/es2020/promise/index.d.ts +22 -0
- package/libs-branded/es2020/sharedmemory/index.d.ts +22 -0
- package/libs-branded/es2020/string/index.d.ts +22 -0
- package/libs-branded/es2020/symbol-wellknown/index.d.ts +22 -0
- package/libs-branded/es2021/full/index.d.ts +22 -0
- package/libs-branded/es2021/index.d.ts +22 -0
- package/libs-branded/es2021/intl/index.d.ts +22 -0
- package/libs-branded/es2021/promise/index.d.ts +22 -0
- package/libs-branded/es2021/string/index.d.ts +26 -1
- package/libs-branded/es2021/weakref/index.d.ts +22 -0
- package/libs-branded/es2022/array/index.d.ts +22 -0
- package/libs-branded/es2022/error/index.d.ts +22 -0
- package/libs-branded/es2022/full/index.d.ts +22 -0
- package/libs-branded/es2022/index.d.ts +22 -0
- package/libs-branded/es2022/intl/index.d.ts +22 -0
- package/libs-branded/es2022/object/index.d.ts +21 -0
- package/libs-branded/es2022/regexp/index.d.ts +22 -0
- package/libs-branded/es2022/string/index.d.ts +22 -0
- package/libs-branded/es2023/array/index.d.ts +22 -0
- package/libs-branded/es2023/collection/index.d.ts +22 -0
- package/libs-branded/es2023/full/index.d.ts +22 -0
- package/libs-branded/es2023/index.d.ts +22 -0
- package/libs-branded/es2023/intl/index.d.ts +22 -0
- package/libs-branded/es2024/arraybuffer/index.d.ts +22 -0
- package/libs-branded/es2024/collection/index.d.ts +22 -0
- package/libs-branded/es2024/full/index.d.ts +22 -0
- package/libs-branded/es2024/index.d.ts +22 -0
- package/libs-branded/es2024/object/index.d.ts +22 -0
- package/libs-branded/es2024/promise/index.d.ts +22 -0
- package/libs-branded/es2024/regexp/index.d.ts +22 -0
- package/libs-branded/es2024/sharedmemory/index.d.ts +22 -0
- package/libs-branded/es2024/string/index.d.ts +22 -0
- package/libs-branded/es2025/collection/index.d.ts +22 -0
- package/libs-branded/es2025/float16/index.d.ts +22 -0
- package/libs-branded/es2025/full/index.d.ts +22 -0
- package/libs-branded/es2025/index.d.ts +22 -0
- package/libs-branded/es2025/intl/index.d.ts +22 -0
- package/libs-branded/es2025/iterator/index.d.ts +22 -0
- package/libs-branded/es2025/promise/index.d.ts +22 -0
- package/libs-branded/es2025/regexp/index.d.ts +22 -0
- package/libs-branded/es5/index.d.ts +71 -13
- package/libs-branded/es6/index.d.ts +22 -0
- package/libs-branded/esnext/array/index.d.ts +22 -0
- package/libs-branded/esnext/collection/index.d.ts +22 -0
- package/libs-branded/esnext/date/index.d.ts +22 -0
- package/libs-branded/esnext/decorators/index.d.ts +22 -0
- package/libs-branded/esnext/disposable/index.d.ts +22 -0
- package/libs-branded/esnext/error/index.d.ts +22 -0
- package/libs-branded/esnext/full/index.d.ts +22 -0
- package/libs-branded/esnext/index.d.ts +22 -0
- package/libs-branded/esnext/intl/index.d.ts +22 -0
- package/libs-branded/esnext/sharedmemory/index.d.ts +22 -0
- package/libs-branded/esnext/temporal/index.d.ts +22 -0
- package/libs-branded/esnext/typedarrays/index.d.ts +22 -0
- package/libs-branded/scripthost/index.d.ts +22 -0
- package/libs-branded/webworker/asynciterable/index.d.ts +22 -0
- package/libs-branded/webworker/importscripts/index.d.ts +22 -0
- package/libs-branded/webworker/index.d.ts +22 -0
- package/libs-branded/webworker/iterable/index.d.ts +22 -0
- package/package.json +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,69 @@
|
|
|
1
1
|
# strict-ts-lib-v6.0
|
|
2
2
|
|
|
3
|
+
## 0.6.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 4ad8086: The published bundles now carry the attribution Apache-2.0 asks of a
|
|
8
|
+
derivative work.
|
|
9
|
+
|
|
10
|
+
Every generated declaration file is a rewrite of a TypeScript lib file, which
|
|
11
|
+
is Copyright Microsoft Corporation under Apache-2.0. The generator used to
|
|
12
|
+
strip the upstream copyright banner and the bundles shipped no license text.
|
|
13
|
+
Now each file keeps the banner and states beneath it that it was modified,
|
|
14
|
+
and each bundle ships `LICENSE` and a `NOTICE` naming the upstream commit it
|
|
15
|
+
was generated from. Nothing about the declarations themselves changed.
|
|
16
|
+
|
|
17
|
+
## 0.6.3
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- 90bf42e: Two fixes to declarations that compiled fine and went wrong at the use site.
|
|
22
|
+
|
|
23
|
+
**`ReturnType<typeof setTimeout>` no longer comes out `unknown`.** `ReturnType`
|
|
24
|
+
and `InstanceType` spelled their conditional's `extends` clause
|
|
25
|
+
`(...args: readonly never[]) => infer R`. An overload set whose last member is
|
|
26
|
+
generic, with a rest parameter computed from its own type parameter, does not
|
|
27
|
+
match that — so the conditional took its false branch and produced `unknown`,
|
|
28
|
+
silently, because a false branch is a type rather than an error. `@types/node`'s
|
|
29
|
+
`setTimeout<TArgs extends any[]>(cb, ms?, ...args: MakeVoidParameterOptional<TArgs>)`
|
|
30
|
+
is exactly that shape once it merges with the DOM's `setTimeout`, so
|
|
31
|
+
`ReturnType<typeof setTimeout>` was `unknown` and could not be handed back to
|
|
32
|
+
`clearTimeout`.
|
|
33
|
+
|
|
34
|
+
The spelling is now a bare `never`, which is what the stock library itself uses
|
|
35
|
+
for `ThisParameterType` and `OmitThisParameter`, and which gives up none of the
|
|
36
|
+
`any` removal this library exists for. The type-parameter constraint is spelled
|
|
37
|
+
the same way, so the false branch is unreachable for any `T` the constraint
|
|
38
|
+
admits: "did not resolve" can no longer arrive as an `unknown` that propagates.
|
|
39
|
+
|
|
40
|
+
That `never` now has a name, `StrictLibInternals.AnyArguments`, declared in
|
|
41
|
+
`lib.es5.d.ts`. `any` reads two ways in a function type and only one of them is
|
|
42
|
+
what this library removes: `any` as a _value_ becomes `unknown` or `never` by
|
|
43
|
+
variance, while `any` as a _wildcard_ — the `(...args: any)` in `ReturnType` —
|
|
44
|
+
describes nothing at all and is there only to switch the parameter comparison
|
|
45
|
+
off. The stock library spells that wildcard two ways (`any` in `ReturnType`,
|
|
46
|
+
`never` in `ThisParameterType`); this library spells it one way, and the name
|
|
47
|
+
says which of the two readings is meant. Every such position uses it: the four
|
|
48
|
+
utility types and `ThisParameterType` in `lib.es5.d.ts`, the decorator context
|
|
49
|
+
type parameters in `lib.decorators.d.ts`, and `Reflect.construct`'s `newTarget`
|
|
50
|
+
in `lib.es2015.reflect.d.ts`. The last two were not broken; one spelling is so
|
|
51
|
+
that the trap cannot be re-dug, and so that grepping the name finds all of
|
|
52
|
+
them.
|
|
53
|
+
|
|
54
|
+
**A replacement callback's trailing arguments are `string | undefined`, not
|
|
55
|
+
`unknown`.** `String.prototype.replace` / `replaceAll` and the
|
|
56
|
+
`[Symbol.replace]` they dispatch to typed the captured groups `readonly
|
|
57
|
+
unknown[]`, which forced every caller to narrow with `isString` before using a
|
|
58
|
+
group that the pattern shows can never be absent. They are now
|
|
59
|
+
`readonly (string | undefined)[]` — the type of a capture group — so contextual
|
|
60
|
+
typing gives `string | undefined` and a `?? ''` or a `!== undefined` check is
|
|
61
|
+
enough. Reading the participating-group count off a regular expression literal
|
|
62
|
+
is not something the type system can do, so this trades a little soundness for
|
|
63
|
+
it: a callback may declare a parameter past the last capture as
|
|
64
|
+
`string | undefined` and be handed the offset instead. That is still narrower
|
|
65
|
+
than the `any[]` the stock library ships.
|
|
66
|
+
|
|
3
67
|
## 0.6.2
|
|
4
68
|
|
|
5
69
|
### Patch Changes
|
package/NOTICE
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
strict-ts-lib-v6.0
|
|
2
|
+
Copyright (c) noshiro-pf
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0; see LICENSE.
|
|
5
|
+
|
|
6
|
+
This package is a derivative work of the built-in library declaration
|
|
7
|
+
files (lib.*.d.ts) of TypeScript 6.0.3:
|
|
8
|
+
|
|
9
|
+
https://github.com/microsoft/TypeScript/tree/v6.0.3/lib
|
|
10
|
+
|
|
11
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
12
|
+
Licensed under the Apache License, Version 2.0.
|
|
13
|
+
|
|
14
|
+
Every file under libs/ and libs-branded/ keeps the copyright notice of
|
|
15
|
+
the file it was generated from, followed by a note that it was modified.
|
|
16
|
+
The changes are described at https://github.com/noshiro-pf/mono.
|
package/README.md
CHANGED
|
@@ -46,3 +46,9 @@ the lookup does not happen without it:
|
|
|
46
46
|
`--unlink` removes the links again.
|
|
47
47
|
|
|
48
48
|
See <https://github.com/noshiro-pf/mono> for usage and version support.
|
|
49
|
+
|
|
50
|
+
## License
|
|
51
|
+
|
|
52
|
+
Apache-2.0, like the TypeScript lib files it is generated from
|
|
53
|
+
(Copyright Microsoft Corporation). `LICENSE` and `NOTICE` in this
|
|
54
|
+
package have the details.
|
|
@@ -1,3 +1,26 @@
|
|
|
1
|
+
/// <reference lib="es5" />
|
|
2
|
+
/*! *****************************************************************************
|
|
3
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
5
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
6
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
|
|
8
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
9
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
10
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
11
|
+
MERCHANTABILITY OR NON-INFRINGEMENT.
|
|
12
|
+
|
|
13
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
14
|
+
and limitations under the License.
|
|
15
|
+
***************************************************************************** */
|
|
16
|
+
|
|
17
|
+
/*
|
|
18
|
+
* Modified from TypeScript's `lib.decorators.d.ts` by strict-ts-lib
|
|
19
|
+
* (https://github.com/noshiro-pf/mono): the declarations are rewritten with
|
|
20
|
+
* stricter types. This is not the original file. See the NOTICE and LICENSE
|
|
21
|
+
* files of the package this ships in.
|
|
22
|
+
*/
|
|
23
|
+
|
|
1
24
|
/**
|
|
2
25
|
* The decorator context types provided to class element decorators.
|
|
3
26
|
*/
|
|
@@ -26,8 +49,11 @@ type DecoratorMetadata = typeof globalThis extends {
|
|
|
26
49
|
* @template Class The type of the decorated class associated with this context.
|
|
27
50
|
*/
|
|
28
51
|
interface ClassDecoratorContext<
|
|
29
|
-
Class extends abstract new (
|
|
30
|
-
|
|
52
|
+
Class extends abstract new (
|
|
53
|
+
...args: StrictLibInternals.AnyArguments
|
|
54
|
+
) => unknown = abstract new (
|
|
55
|
+
...args: StrictLibInternals.AnyArguments
|
|
56
|
+
) => unknown,
|
|
31
57
|
> {
|
|
32
58
|
/** The kind of element that was decorated. */
|
|
33
59
|
readonly kind: 'class';
|
|
@@ -65,9 +91,12 @@ interface ClassDecoratorContext<
|
|
|
65
91
|
*/
|
|
66
92
|
interface ClassMethodDecoratorContext<
|
|
67
93
|
This = unknown,
|
|
68
|
-
Value extends (
|
|
94
|
+
Value extends (
|
|
95
|
+
this: This,
|
|
96
|
+
...args: StrictLibInternals.AnyArguments
|
|
97
|
+
) => unknown = (
|
|
69
98
|
this: This,
|
|
70
|
-
...args:
|
|
99
|
+
...args: StrictLibInternals.AnyArguments
|
|
71
100
|
) => unknown,
|
|
72
101
|
> {
|
|
73
102
|
/** The kind of class element that was decorated. */
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
4
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
5
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
|
|
7
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
8
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
9
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
10
|
+
MERCHANTABILITY OR NON-INFRINGEMENT.
|
|
11
|
+
|
|
12
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
13
|
+
and limitations under the License.
|
|
14
|
+
***************************************************************************** */
|
|
15
|
+
|
|
16
|
+
/*
|
|
17
|
+
* Modified from TypeScript's `lib.decorators.legacy.d.ts` by strict-ts-lib
|
|
18
|
+
* (https://github.com/noshiro-pf/mono): the declarations are rewritten with
|
|
19
|
+
* stricter types. This is not the original file. See the NOTICE and LICENSE
|
|
20
|
+
* files of the package this ships in.
|
|
21
|
+
*/
|
|
22
|
+
|
|
1
23
|
declare type ClassDecorator = <TFunction extends Function>(
|
|
2
24
|
target: TFunction,
|
|
3
25
|
) => TFunction | void;
|
|
@@ -1,2 +1,24 @@
|
|
|
1
|
+
/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
4
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
5
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
|
|
7
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
8
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
9
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
10
|
+
MERCHANTABILITY OR NON-INFRINGEMENT.
|
|
11
|
+
|
|
12
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
13
|
+
and limitations under the License.
|
|
14
|
+
***************************************************************************** */
|
|
15
|
+
|
|
16
|
+
/*
|
|
17
|
+
* Modified from TypeScript's `lib.dom.asynciterable.d.ts` by strict-ts-lib
|
|
18
|
+
* (https://github.com/noshiro-pf/mono): the declarations are rewritten with
|
|
19
|
+
* stricter types. This is not the original file. See the NOTICE and LICENSE
|
|
20
|
+
* files of the package this ships in.
|
|
21
|
+
*/
|
|
22
|
+
|
|
1
23
|
// This file's contents are now included in the main types file.
|
|
2
24
|
// The file has been left for backward compatibility.
|
package/libs/dom/index.d.ts
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
4
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
5
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
|
|
7
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
8
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
9
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
10
|
+
MERCHANTABILITY OR NON-INFRINGEMENT.
|
|
11
|
+
|
|
12
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
13
|
+
and limitations under the License.
|
|
14
|
+
***************************************************************************** */
|
|
15
|
+
|
|
16
|
+
/*
|
|
17
|
+
* Modified from TypeScript's `lib.dom.d.ts` by strict-ts-lib
|
|
18
|
+
* (https://github.com/noshiro-pf/mono): the declarations are rewritten with
|
|
19
|
+
* stricter types. This is not the original file. See the NOTICE and LICENSE
|
|
20
|
+
* files of the package this ships in.
|
|
21
|
+
*/
|
|
22
|
+
|
|
1
23
|
/// <reference lib="es2015" />
|
|
2
24
|
/// <reference lib="es2018.asynciterable" />
|
|
3
25
|
|
|
@@ -1,2 +1,24 @@
|
|
|
1
|
+
/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
4
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
5
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
|
|
7
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
8
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
9
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
10
|
+
MERCHANTABILITY OR NON-INFRINGEMENT.
|
|
11
|
+
|
|
12
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
13
|
+
and limitations under the License.
|
|
14
|
+
***************************************************************************** */
|
|
15
|
+
|
|
16
|
+
/*
|
|
17
|
+
* Modified from TypeScript's `lib.dom.iterable.d.ts` by strict-ts-lib
|
|
18
|
+
* (https://github.com/noshiro-pf/mono): the declarations are rewritten with
|
|
19
|
+
* stricter types. This is not the original file. See the NOTICE and LICENSE
|
|
20
|
+
* files of the package this ships in.
|
|
21
|
+
*/
|
|
22
|
+
|
|
1
23
|
// This file's contents are now included in the main types file.
|
|
2
24
|
// The file has been left for backward compatibility.
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
4
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
5
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
|
|
7
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
8
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
9
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
10
|
+
MERCHANTABILITY OR NON-INFRINGEMENT.
|
|
11
|
+
|
|
12
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
13
|
+
and limitations under the License.
|
|
14
|
+
***************************************************************************** */
|
|
15
|
+
|
|
16
|
+
/*
|
|
17
|
+
* Modified from TypeScript's `lib.es2015.collection.d.ts` by strict-ts-lib
|
|
18
|
+
* (https://github.com/noshiro-pf/mono): the declarations are rewritten with
|
|
19
|
+
* stricter types. This is not the original file. See the NOTICE and LICENSE
|
|
20
|
+
* files of the package this ships in.
|
|
21
|
+
*/
|
|
22
|
+
|
|
1
23
|
interface Map<K, V> {
|
|
2
24
|
/**
|
|
3
25
|
* Removes all elements from the Map.
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
4
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
5
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
|
|
7
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
8
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
9
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
10
|
+
MERCHANTABILITY OR NON-INFRINGEMENT.
|
|
11
|
+
|
|
12
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
13
|
+
and limitations under the License.
|
|
14
|
+
***************************************************************************** */
|
|
15
|
+
|
|
16
|
+
/*
|
|
17
|
+
* Modified from TypeScript's `lib.es2015.core.d.ts` by strict-ts-lib
|
|
18
|
+
* (https://github.com/noshiro-pf/mono): the declarations are rewritten with
|
|
19
|
+
* stricter types. This is not the original file. See the NOTICE and LICENSE
|
|
20
|
+
* files of the package this ships in.
|
|
21
|
+
*/
|
|
22
|
+
|
|
1
23
|
interface Array<T> {
|
|
2
24
|
/**
|
|
3
25
|
* Returns the value of the first element in the array where predicate is true, and undefined
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
4
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
5
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
|
|
7
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
8
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
9
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
10
|
+
MERCHANTABILITY OR NON-INFRINGEMENT.
|
|
11
|
+
|
|
12
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
13
|
+
and limitations under the License.
|
|
14
|
+
***************************************************************************** */
|
|
15
|
+
|
|
16
|
+
/*
|
|
17
|
+
* Modified from TypeScript's `lib.es2015.generator.d.ts` by strict-ts-lib
|
|
18
|
+
* (https://github.com/noshiro-pf/mono): the declarations are rewritten with
|
|
19
|
+
* stricter types. This is not the original file. See the NOTICE and LICENSE
|
|
20
|
+
* files of the package this ships in.
|
|
21
|
+
*/
|
|
22
|
+
|
|
1
23
|
/// <reference lib="es2015.iterable" />
|
|
2
24
|
|
|
3
25
|
interface Generator<
|
package/libs/es2015/index.d.ts
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
4
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
5
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
|
|
7
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
8
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
9
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
10
|
+
MERCHANTABILITY OR NON-INFRINGEMENT.
|
|
11
|
+
|
|
12
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
13
|
+
and limitations under the License.
|
|
14
|
+
***************************************************************************** */
|
|
15
|
+
|
|
16
|
+
/*
|
|
17
|
+
* Modified from TypeScript's `lib.es2015.d.ts` by strict-ts-lib
|
|
18
|
+
* (https://github.com/noshiro-pf/mono): the declarations are rewritten with
|
|
19
|
+
* stricter types. This is not the original file. See the NOTICE and LICENSE
|
|
20
|
+
* files of the package this ships in.
|
|
21
|
+
*/
|
|
22
|
+
|
|
1
23
|
/// <reference lib="es5" />
|
|
2
24
|
/// <reference lib="es2015.core" />
|
|
3
25
|
/// <reference lib="es2015.collection" />
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
4
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
5
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
|
|
7
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
8
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
9
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
10
|
+
MERCHANTABILITY OR NON-INFRINGEMENT.
|
|
11
|
+
|
|
12
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
13
|
+
and limitations under the License.
|
|
14
|
+
***************************************************************************** */
|
|
15
|
+
|
|
16
|
+
/*
|
|
17
|
+
* Modified from TypeScript's `lib.es2015.iterable.d.ts` by strict-ts-lib
|
|
18
|
+
* (https://github.com/noshiro-pf/mono): the declarations are rewritten with
|
|
19
|
+
* stricter types. This is not the original file. See the NOTICE and LICENSE
|
|
20
|
+
* files of the package this ships in.
|
|
21
|
+
*/
|
|
22
|
+
|
|
1
23
|
/// <reference lib="es2015.symbol" />
|
|
2
24
|
|
|
3
25
|
interface SymbolConstructor {
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
4
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
5
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
|
|
7
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
8
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
9
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
10
|
+
MERCHANTABILITY OR NON-INFRINGEMENT.
|
|
11
|
+
|
|
12
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
13
|
+
and limitations under the License.
|
|
14
|
+
***************************************************************************** */
|
|
15
|
+
|
|
16
|
+
/*
|
|
17
|
+
* Modified from TypeScript's `lib.es2015.promise.d.ts` by strict-ts-lib
|
|
18
|
+
* (https://github.com/noshiro-pf/mono): the declarations are rewritten with
|
|
19
|
+
* stricter types. This is not the original file. See the NOTICE and LICENSE
|
|
20
|
+
* files of the package this ships in.
|
|
21
|
+
*/
|
|
22
|
+
|
|
1
23
|
interface PromiseConstructor {
|
|
2
24
|
/**
|
|
3
25
|
* A reference to the prototype.
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
4
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
5
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
|
|
7
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
8
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
9
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
10
|
+
MERCHANTABILITY OR NON-INFRINGEMENT.
|
|
11
|
+
|
|
12
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
13
|
+
and limitations under the License.
|
|
14
|
+
***************************************************************************** */
|
|
15
|
+
|
|
16
|
+
/*
|
|
17
|
+
* Modified from TypeScript's `lib.es2015.proxy.d.ts` by strict-ts-lib
|
|
18
|
+
* (https://github.com/noshiro-pf/mono): the declarations are rewritten with
|
|
19
|
+
* stricter types. This is not the original file. See the NOTICE and LICENSE
|
|
20
|
+
* files of the package this ships in.
|
|
21
|
+
*/
|
|
22
|
+
|
|
1
23
|
interface ProxyHandler<T extends object> {
|
|
2
24
|
/**
|
|
3
25
|
* A trap method for a function call.
|
|
@@ -1,3 +1,26 @@
|
|
|
1
|
+
/// <reference lib="es5" />
|
|
2
|
+
/*! *****************************************************************************
|
|
3
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
5
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
6
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
|
|
8
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
9
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
10
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
11
|
+
MERCHANTABILITY OR NON-INFRINGEMENT.
|
|
12
|
+
|
|
13
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
14
|
+
and limitations under the License.
|
|
15
|
+
***************************************************************************** */
|
|
16
|
+
|
|
17
|
+
/*
|
|
18
|
+
* Modified from TypeScript's `lib.es2015.reflect.d.ts` by strict-ts-lib
|
|
19
|
+
* (https://github.com/noshiro-pf/mono): the declarations are rewritten with
|
|
20
|
+
* stricter types. This is not the original file. See the NOTICE and LICENSE
|
|
21
|
+
* files of the package this ships in.
|
|
22
|
+
*/
|
|
23
|
+
|
|
1
24
|
declare namespace Reflect {
|
|
2
25
|
/**
|
|
3
26
|
* Calls the function with the specified object as the this value
|
|
@@ -27,7 +50,7 @@ declare namespace Reflect {
|
|
|
27
50
|
function construct<A extends readonly unknown[], R>(
|
|
28
51
|
target: new (...args: A) => R,
|
|
29
52
|
argumentsList: Readonly<A>,
|
|
30
|
-
newTarget?: new (...args:
|
|
53
|
+
newTarget?: new (...args: StrictLibInternals.AnyArguments) => unknown,
|
|
31
54
|
): R;
|
|
32
55
|
function construct(
|
|
33
56
|
target: Function,
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
4
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
5
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
|
|
7
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
8
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
9
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
10
|
+
MERCHANTABILITY OR NON-INFRINGEMENT.
|
|
11
|
+
|
|
12
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
13
|
+
and limitations under the License.
|
|
14
|
+
***************************************************************************** */
|
|
15
|
+
|
|
16
|
+
/*
|
|
17
|
+
* Modified from TypeScript's `lib.es2015.symbol.d.ts` by strict-ts-lib
|
|
18
|
+
* (https://github.com/noshiro-pf/mono): the declarations are rewritten with
|
|
19
|
+
* stricter types. This is not the original file. See the NOTICE and LICENSE
|
|
20
|
+
* files of the package this ships in.
|
|
21
|
+
*/
|
|
22
|
+
|
|
1
23
|
interface SymbolConstructor {
|
|
2
24
|
/**
|
|
3
25
|
* A reference to the prototype.
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
4
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
5
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
|
|
7
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
8
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
9
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
10
|
+
MERCHANTABILITY OR NON-INFRINGEMENT.
|
|
11
|
+
|
|
12
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
13
|
+
and limitations under the License.
|
|
14
|
+
***************************************************************************** */
|
|
15
|
+
|
|
16
|
+
/*
|
|
17
|
+
* Modified from TypeScript's `lib.es2015.symbol.wellknown.d.ts` by strict-ts-lib
|
|
18
|
+
* (https://github.com/noshiro-pf/mono): the declarations are rewritten with
|
|
19
|
+
* stricter types. This is not the original file. See the NOTICE and LICENSE
|
|
20
|
+
* files of the package this ships in.
|
|
21
|
+
*/
|
|
22
|
+
|
|
1
23
|
/// <reference lib="es2015.symbol" />
|
|
2
24
|
|
|
3
25
|
interface SymbolConstructor {
|
|
@@ -187,7 +209,10 @@ interface RegExp {
|
|
|
187
209
|
*/
|
|
188
210
|
[Symbol.replace](
|
|
189
211
|
string: string,
|
|
190
|
-
replacer: (
|
|
212
|
+
replacer: (
|
|
213
|
+
substring: string,
|
|
214
|
+
...args: readonly (string | undefined)[]
|
|
215
|
+
) => string,
|
|
191
216
|
): string;
|
|
192
217
|
|
|
193
218
|
/**
|
|
@@ -248,10 +273,16 @@ interface String {
|
|
|
248
273
|
searchValue: {
|
|
249
274
|
[Symbol.replace](
|
|
250
275
|
string: string,
|
|
251
|
-
replacer: (
|
|
276
|
+
replacer: (
|
|
277
|
+
substring: string,
|
|
278
|
+
...args: readonly (string | undefined)[]
|
|
279
|
+
) => string,
|
|
252
280
|
): string;
|
|
253
281
|
},
|
|
254
|
-
replacer: (
|
|
282
|
+
replacer: (
|
|
283
|
+
substring: string,
|
|
284
|
+
...args: readonly (string | undefined)[]
|
|
285
|
+
) => string,
|
|
255
286
|
): string;
|
|
256
287
|
|
|
257
288
|
/**
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
4
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
5
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
|
|
7
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
8
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
9
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
10
|
+
MERCHANTABILITY OR NON-INFRINGEMENT.
|
|
11
|
+
|
|
12
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
13
|
+
and limitations under the License.
|
|
14
|
+
***************************************************************************** */
|
|
15
|
+
|
|
16
|
+
/*
|
|
17
|
+
* Modified from TypeScript's `lib.es2016.array.include.d.ts` by strict-ts-lib
|
|
18
|
+
* (https://github.com/noshiro-pf/mono): the declarations are rewritten with
|
|
19
|
+
* stricter types. This is not the original file. See the NOTICE and LICENSE
|
|
20
|
+
* files of the package this ships in.
|
|
21
|
+
*/
|
|
22
|
+
|
|
1
23
|
interface Array<T> {
|
|
2
24
|
/**
|
|
3
25
|
* Determines whether an array includes a certain element, returning true or false as appropriate.
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
4
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
5
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
|
|
7
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
8
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
9
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
10
|
+
MERCHANTABILITY OR NON-INFRINGEMENT.
|
|
11
|
+
|
|
12
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
13
|
+
and limitations under the License.
|
|
14
|
+
***************************************************************************** */
|
|
15
|
+
|
|
16
|
+
/*
|
|
17
|
+
* Modified from TypeScript's `lib.es2016.full.d.ts` by strict-ts-lib
|
|
18
|
+
* (https://github.com/noshiro-pf/mono): the declarations are rewritten with
|
|
19
|
+
* stricter types. This is not the original file. See the NOTICE and LICENSE
|
|
20
|
+
* files of the package this ships in.
|
|
21
|
+
*/
|
|
22
|
+
|
|
1
23
|
/// <reference lib="es2016" />
|
|
2
24
|
/// <reference lib="dom" />
|
|
3
25
|
/// <reference lib="webworker.importscripts" />
|
package/libs/es2016/index.d.ts
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
4
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
5
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
|
|
7
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
8
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
9
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
10
|
+
MERCHANTABILITY OR NON-INFRINGEMENT.
|
|
11
|
+
|
|
12
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
13
|
+
and limitations under the License.
|
|
14
|
+
***************************************************************************** */
|
|
15
|
+
|
|
16
|
+
/*
|
|
17
|
+
* Modified from TypeScript's `lib.es2016.d.ts` by strict-ts-lib
|
|
18
|
+
* (https://github.com/noshiro-pf/mono): the declarations are rewritten with
|
|
19
|
+
* stricter types. This is not the original file. See the NOTICE and LICENSE
|
|
20
|
+
* files of the package this ships in.
|
|
21
|
+
*/
|
|
22
|
+
|
|
1
23
|
/// <reference lib="es2015" />
|
|
2
24
|
/// <reference lib="es2016.array.include" />
|
|
3
25
|
/// <reference lib="es2016.intl" />
|