You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See commit f760614, which added an explicit unknown key to the const-defined output strings map, despite the key existing on the Directions.outputStringsCardinalDir constant.
The text was updated successfully, but these errors were encountered:
I think it CAN be done by reading the ImportDeclaration statement, then programmatically invoking TypeScript's parser to get the AST of that file, and then following the properties to get all its keys. But this is really painful to do such a thing.
I am digging typescript declarations files, hoping this checking can be done by typescript itself rather than eslint.
Even with the latest build of typescript, we can't force inference for this automatically, unfortunately.
It may make more sense to extract the ID of the trigger, then just import the triggerset directly and pull the computed outputStrings value from that, if we're dealing with it as a property (as opposed to cactbot-builtin-response setting it within the trigger).
See commit f760614, which added an explicit
unknown
key to the const-defined output strings map, despite the key existing on theDirections.outputStringsCardinalDir
constant.The text was updated successfully, but these errors were encountered: