mirror of
https://github.com/vercel/commerce.git
synced 2025-06-28 01:11:24 +00:00
type issue
This commit is contained in:
parent
9dadd688b0
commit
03e1380b84
@ -6,7 +6,7 @@ const requireConfig = <T>(isomorphicConfig: T, key: keyof T) => {
|
|||||||
|
|
||||||
if (typeof valueUnderKey === 'undefined') {
|
if (typeof valueUnderKey === 'undefined') {
|
||||||
throw new MissingConfigurationValueError(
|
throw new MissingConfigurationValueError(
|
||||||
`Value for configuration key ${key} was undefined.`
|
`Value for configuration key ${key.toString()} was undefined.`
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user