Add a "digits"
keyword for strings consisting exclusively of 0-9.
Fix an issue causing index signatures with constraints like regex to be considered invalid as definitions.
The following is valid and now will be allowed as a definition.
const test = scope({
svgPath: /^\.\/(\d|a|b|c|d|e|f)+(-(\d|a|b|c|d|e|f)+)*\.svg$/,
svgMap: {
"[svgPath]": "digits"
}
}).export()