Skip to content

Commit c59d178

Browse files
committed
align warning with contributors docs
1 parent 9cf348e commit c59d178

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/architecture/adr/0025-ts-deprecate-enums.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ let value: CipherType = CipherType.Login;
6262
// ❌ Do not: use type inference
6363
const array = [CipherType.Login]; // infers `number[]`
6464
let value = CipherType.Login; // infers `1`
65+
66+
// ❌ Do not: use type assertions
67+
let value = CipherType.Login as CipherType; // this operation is unsafe
6568
```
6669

6770
:::

0 commit comments

Comments
 (0)