There is a interface for customList to provide key, and this key is defined as CustomProperty enum. This enum is defined without const what means is not accessible in runtime. if i want to us customList function and define key as you did in documentation i we got ts error
I could use correct value like this:
but const in declaration is required to be able to use it in runtime
There is a interface for
customList
to provide key, and this key is defined as CustomProperty enum. This enum is defined without const what means is not accessible in runtime. if i want to uscustomList
function and define key as you did in documentation i we got ts errorI could use correct value like this:
but
const
in declaration is required to be able to use it in runtime