ripple 0.2.61 → 0.2.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Ripple is an elegant TypeScript UI framework",
4
4
  "license": "MIT",
5
5
  "author": "Dominic Gannaway",
6
- "version": "0.2.61",
6
+ "version": "0.2.62",
7
7
  "type": "module",
8
8
  "module": "src/runtime/index.js",
9
9
  "main": "src/runtime/index.js",
@@ -1089,6 +1089,13 @@ const visitors = {
1089
1089
  context.state.init.push(b.block(statements));
1090
1090
  },
1091
1091
 
1092
+ TSAsExpression(node, context) {
1093
+ if (!context.state.to_ts) {
1094
+ return context.visit(node.expression);
1095
+ }
1096
+ return context.next();
1097
+ },
1098
+
1092
1099
  TryStatement(node, context) {
1093
1100
  if (!is_inside_component(context)) {
1094
1101
  context.next();