use-dark-mode
use-dark-mode copied to clipboard
Amend the type declaration of storageKey to reflect null possibility
I might be wrong here but the question mark in storageKey?
infers the value to be a string
or undefined
. The documentation says it's possible for the value to be null so I've amended the definition here to match that.