We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74f4bb7 commit 02ea64fCopy full SHA for 02ea64f
docs/contributing/code-style/enums.md
@@ -37,7 +37,7 @@ export const CipherType = Object.freeze({
37
} as const);
38
39
// derive the enum-like type from the raw data
40
-export type CipherType = CipherType[keyof typeof CipherType];
+export type CipherType = (typeof CipherType)[keyof typeof CipherType];
41
```
42
43
And use it like so:
@@ -93,7 +93,7 @@ export const CredentialType = Object.freeze({
93
94
95
96
-export type CredentialType = CredentialType[keyof typeof CredentialType];
+export type CredentialType = (typeof CredentialType)[keyof typeof CredentialType];
97
98
99
:::note[Enum-likes are structural types!]
0 commit comments