Currently, I am in the process of incorporating the nanostore ReadableAtom
interface into my codebase. This interface introduces two distinct properties that may seem unconventional:
export interface ReadableAtom<Value = any> {
...
readonly [actionId]: number | undefined
readonly [lastAction]: string | undefined
I'm curious about the purpose of these bracketed property declarations and how exactly I should go about implementing them to meet the requirements of the interface.