rip-lang 3.10.7 → 3.10.9

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/src/types.js CHANGED
@@ -257,7 +257,7 @@ function collectTypeExpression(tokens, j) {
257
257
  if (depth === 0) {
258
258
  if (tTag === '=' || tTag === 'REACTIVE_ASSIGN' ||
259
259
  tTag === 'COMPUTED_ASSIGN' || tTag === 'READONLY_ASSIGN' ||
260
- tTag === 'REACT_ASSIGN' || tTag === 'TERMINATOR' ||
260
+ tTag === 'EFFECT' || tTag === 'TERMINATOR' ||
261
261
  tTag === 'INDENT' || tTag === 'OUTDENT' ||
262
262
  tTag === '->' || tTag === ',') {
263
263
  break;
@@ -874,7 +874,7 @@ export function emitTypes(tokens, sexpr = null) {
874
874
  } else if (next[0] === 'COMPUTED_ASSIGN') {
875
875
  usesComputed = true;
876
876
  lines.push(`${indent()}${exp}${declare}const ${varName}: Computed<${type}>;`);
877
- } else if (next[0] === 'REACT_ASSIGN') {
877
+ } else if (next[0] === 'EFFECT') {
878
878
  lines.push(`${indent()}${exp}${declare}const ${varName}: () => void;`);
879
879
  } else if (next[0] === '=') {
880
880
  // Check if RHS is an arrow function with return type