diff --git a/lib/rules/valid-properties.js b/lib/rules/valid-properties.js index ea20bcd..17047de 100644 --- a/lib/rules/valid-properties.js +++ b/lib/rules/valid-properties.js @@ -82,7 +82,10 @@ function validProp(node, context, allowKeys) { } }) } - } else if (node.value.type !== 'Identifier') { + } else if ( + node.value.type !== 'Identifier' && + node.value.type !== 'TSAsExpression' + ) { return context.report({ node, message: "Invalid value for '{{propName}}'.",