dillon1000/react
Commit
Browse files [env] Type inference for global object
- Add `DEFAULT_SHAPES` ShapeRegistry, which holds builtins and all `ObjectShapes` used in `DEFAULT_GLOBALS`. - Add a few typed objects / functions into `DEFAULT_GLOBALS` (used for tests) - Add type inference and `infer-global-object` test
Changed paths5 files
First-parent comparisoncompiler/forget/src/HIR/Environment.ts ModifiedM compiler/forget/src/HIR/Globals.ts ModifiedM compiler/forget/src/TypeInference/InferTypes.ts ModifiedA compiler/forget/src/__tests__/fixtures/compiler/infer-global-object.expect.md AddedA compiler/forget/src/__tests__/fixtures/compiler/infer-global-object.js AddedPatch
Files changed
Rendering syntax-highlighted changes…