diff options
| author | bors <bors@rust-lang.org> | 2023-07-06 07:20:25 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-07-06 07:20:25 +0000 |
| commit | 537f9b311dea40d4a6d9b7187cb39dc173c26f7c (patch) | |
| tree | 81c63e6c767caf70be3252934e4ab2742e0a638a /tests/codegen/src-hash-algorithm | |
| parent | aa91eda9028758839487ad0f0eb120944a549ff3 (diff) | |
| parent | f70845305f54181e1681828c7935305c66e743bb (diff) | |
| download | rust-537f9b311dea40d4a6d9b7187cb39dc173c26f7c.tar.gz rust-537f9b311dea40d4a6d9b7187cb39dc173c26f7c.zip | |
Auto merge of #15160 - tetsuharuohzeki:enable-noUncheckedIndexedAccess, r=Veykril
editor/code: Enable `--noUncheckedIndexedAccess` & `--noPropertyAccessFromIndexSignature` ts option
This enables typescript's these option:
- [`--noUncheckedIndexedAccess`](https://www.typescriptlang.org/tsconfig#noUncheckedIndexedAccess)
- This checks whether indexed access is not `null` (or `undefined`) strictly just as like checking by `std::option::Option::unwrap()`.
- [`--noPropertyAccessFromIndexSignature`](https://www.typescriptlang.org/tsconfig#noPropertyAccessFromIndexSignature)
- This disallows `bar.foo` access if the `bar` type is `{ [key: string]: someType; }`.
----
Additionally, to enable `--noUncheckedIndexedAccess` easily, this pull request introduces [option-t](https://www.npmjs.com/package/option-t) as a dependency instead of defining a function in this repository like `unwrapUndefinable()` .
I'll remove it and define them byself if our dependency management policy is that to avoid to add a new package as possible.
Diffstat (limited to 'tests/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions
