issues
search
jkomoros
/
CASsim
Complex Adaptive Systems Simulator
Apache License 2.0
21
stars
0
forks
source link
Switch to typescript
#71
Open
jkomoros
opened
2 years ago
jkomoros
commented
2 years ago
[x] Enable eslint for typescript and fix errors
[x] Make listings.json instead be a typescript module that is imported into the build, instead of fetched at boot
[x] noImplicitAny
[x] noEmitOnError
[x] Make it so failed tsc in
npm run build
blocks rest of build
[ ] use readonly in more places
[x] Switch screenshot.js to typescript
[x] Verify it all works
[x] Fix distribution optionsConfig breaking in 4dac8956a377716e4df614712c0da073aeca63b3
[x] Why don't other options for standing-ovation show up?
[x] Do CustomEvent.details pattern like in card-web
[x] Make a way to default to a distribution but still allow the others easily
[x] Make dynamic-types.ts have single quotes
[ ] use customElement, and interface extensions for the various simulator renderers
[x] Bug: if you use a fixed distribution of fixed, then the spread is not hidden (no distribution set)
[x] Figure out a pattern where the return type of optionsConfig needs to match SimulatorNameSimOptions in type checking
[ ] Do all events stuff done in card-web (global events, typed event creators etc)
[ ] Runstatuses should go from number[] to a specific type
[x] Import constants in screenshot.ts from relevant files (see
https://stackoverflow.com/questions/37579969/how-to-use-multiple-tsconfig-files-in-vs-code
)
jimmywarting
commented
2 years ago
You might not need TypeScript... (syntax)
npm run build
blocks rest of build