Open KameronKeller opened 7 months ago
models/highestregionlocator.ts
locateHighestRegion()
models/region.ts
index.ts
types.ts
index.test.ts
N/A
https://github.com/olioapps/typescript-starter-lab/assets/17558364/d45a6cc5-1ea2-4e8b-89e6-cfa20d323243
yarn install
yarn test
What this is:
models/highestregionlocator.ts
defines a class that receives an event stream and will have a method that can locate the highest region in the datasetlocateHighestRegion()
function exists as a placeholder and will throw an error if calledmodels/region.ts
defines a class that can add up the scores of the app events that are added to itindex.ts
now has a main function and a console.log as a placeholder to verify it is being called when the program is being runtypes.ts
defines types for AppEvents, EventStream data, and the dictionary for the Scores classindex.test.ts
defines high-level tests for validating that the classes created above successfully interface with each otherIssue:
N/A
Media:
https://github.com/olioapps/typescript-starter-lab/assets/17558364/d45a6cc5-1ea2-4e8b-89e6-cfa20d323243
Steps to Verify:
yarn install
yarn test