dillon1000/react
Commit
Browse files Cleanup Stack impl
Originally I defined `Stack` as an interface to ensure both Node and Empty variants would have an identical API. But exporting an interface allows a developer to define other implementations, when we really want to ensure that a Stack is precisely a Node or Empty instance. This PR changes to exporting a union of `Stack = Node | Empty`, and makes the interface private to the module.
Changed paths1 file
First-parent comparisoncompiler/forget/src/Utils/Stack.ts ModifiedPatch
Files changed
Rendering syntax-highlighted changes…