Skip to content

Commit a9aedc4

Browse files
committed
Fix typo in enum like code sample
1 parent 3556912 commit a9aedc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const CipherType = Object.freeze({
4343
SshKey: 5,
4444
} as const);
4545

46-
export type CipherType = _CipherType[keyof typeof CipherType];
46+
export type CipherType = (typeof CipherType)[keyof typeof CipherType];
4747
```
4848

4949
This code creates a `type CipherType` that allows arguments and variables to be typed similarly to

0 commit comments

Comments
 (0)