diff --git a/src/lib/converters/options/computedConverter.ts b/src/lib/converters/options/computedConverter.ts index 473c8e8..a32ed70 100644 --- a/src/lib/converters/options/computedConverter.ts +++ b/src/lib/converters/options/computedConverter.ts @@ -96,6 +96,12 @@ export const computedConverter = ( const namespaceText = namespace.text; + if (ts.isFunctionExpression(mapObject)) { + throw new Error( + "Function as the argument of mapState or mapGetters is not currently supported" + ); + } + if (ts.isArrayLiteralExpression(mapObject)) { return mapArrayConverter(mapName, namespaceText, mapObject); }