[x] stale files in dist directory when src restructured using rimraf
[x] Long time to eslint typescript
[x] File names: upper or lower case? A: Class = uppercase; otherwise lower case
[x] Use import { thing } from "./thing" and thing notation or import thing from "./thing" and thing.thing as needed
[x] Where do tests go? Beside the file, on in a separate test directory with parallel structure? beside
[x] TypeScript : Put a list of Objects implementing InterfaceA and InterfaceB mixed in an array. How to tell them apart again? (example) figured it out.
[x] How to use enums type safely? Turns into a string upon returning from a function (example)
[x] EventHandler* should not return SideEffect directly. Should pass through some intermediary structure & TimeHandler should turn the stuct into a SideEffect done
stale files inusing rimrafdist
directory whensrc
restructuredFile names: upper or lower case?A: Class = uppercase; otherwise lower caseUseas neededimport { thing } from "./thing"
andthing
notation orimport thing from "./thing"
andthing.thing
Where do tests go? Beside the file, on in a separatebesidetest
directory with parallel structure?TypeScript : Put a list of Objects implementing InterfaceA and InterfaceB mixed in an array. How to tell them apart again? (example)figured it out.doneEventHandler*
should not returnSideEffect
directly. Should pass through some intermediary structure &TimeHandler
should turn the stuct into a SideEffectRefactor to observer design patterndone