Typescript all the parser things
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user