Typescript all the parser things

This commit is contained in:
Thaum Rystra
2024-02-20 23:21:12 +02:00
parent 3ea492ee78
commit ac15512bc5
86 changed files with 926 additions and 718 deletions

View File

@@ -6,7 +6,9 @@ import {
prettifyParseError,
} from '/imports/parser/parser';
import STORAGE_LIMITS from '/imports/constants/STORAGE_LIMITS';
import resolve, { Context, traverse } from '/imports/parser/resolve';
import resolve from '/imports/parser/resolve';
import Context from '../../parser/types/Context';
import traverse from '/imports/parser/traverse';
/*
* Constants are primitive values that can be used elsewhere in computations

View File

@@ -17,7 +17,6 @@ export function propsFromForest(
const children = prop.children;
// Check the property has a type
if (!prop.type) {
console.log(prop);
throw 'Type is required on every property, not found on above doc';
}
// Create the clean doc