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.
SpecVersionDict
1 parent f782180 commit 2d0f6c4Copy full SHA for 2d0f6c4
src/spec.ts
@@ -298,10 +298,8 @@ export const Spec1dot4: Readonly<Protocol> = Object.freeze(new Spec(
298
true
299
))
300
301
-export const SpecVersionDict: { readonly [key in Version]?: Readonly<Protocol> } = Object.freeze(
302
- Object.fromEntries([
303
- [Version.v1dot2, Spec1dot2],
304
- [Version.v1dot3, Spec1dot3],
305
- [Version.v1dot4, Spec1dot4]
306
- ])
307
-)
+export const SpecVersionDict: { readonly [key in Version]?: Readonly<Protocol> } = Object.freeze({
+ [Version.v1dot2]: Spec1dot2,
+ [Version.v1dot3]: Spec1dot3,
+ [Version.v1dot4]: Spec1dot4
+})
0 commit comments