@shakerquiz/utilities 0.5.203 → 0.5.204
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -29,7 +29,7 @@ const ChatappVersionShape = Object.freeze({
|
|
|
29
29
|
})
|
|
30
30
|
|
|
31
31
|
/** @returns {keyof typeof Version | 'Unknown'} */
|
|
32
|
-
export const
|
|
32
|
+
export const inferVersion = Object.freeze(value =>
|
|
33
33
|
ValueChatappVersion[value?.chatapp_legacy]
|
|
34
34
|
?? ValueChatappVersion[value]
|
|
35
35
|
?? Version[value]
|
|
@@ -37,7 +37,7 @@ export const inferChatappVersion = Object.freeze(value =>
|
|
|
37
37
|
)
|
|
38
38
|
|
|
39
39
|
/** @returns {typeof ChatappVersionShape[keyof typeof ChatappVersionShape] | { chatapp_legacy: null }} */
|
|
40
|
-
export const
|
|
40
|
+
export const inferVersionShape = Object.freeze(value =>
|
|
41
41
|
ChatappVersionShape[value]
|
|
42
42
|
?? { chatapp_legacy: null }
|
|
43
43
|
)
|