Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TSGuild-99: Create a TypeScript version of election-api-javascript #100

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

rossanodan
Copy link

@rossanodan rossanodan commented Jun 2, 2023

What?

This pull request adds a new project to the list, election-api-typescript. This is an exact copy of election-api-javascript with the only difference that the development environment is based on TypeScript.

Why?

This will help recruitment to test candidates' TypeScript capabilities and it will also give more choice to the candidates who prefer writing TypeScript code.

Next steps

Create election-ui-typescript

@bbc/typescript-guild

Rossano D'Angelo added 3 commits June 2, 2023 12:26
This commit creates the skeleton application of election-api-javascript in a TypeScript environment.
… files

Added Jest configuration for TypeScript support and copied JSON test files from election-api-javascript.
Copy link
Contributor

@paulbrimicombe paulbrimicombe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. I've added a few comments. Thanks for taking the time to do this.

election-api-typescript/jest.config.ts Outdated Show resolved Hide resolved
election-api-typescript/package.json Outdated Show resolved Hide resolved
election-api-typescript/package.json Show resolved Hide resolved
election-api-typescript/tsconfig.json Show resolved Hide resolved
election-api-typescript/src/resultsController.ts Outdated Show resolved Hide resolved
election-api-typescript/src/types.ts Outdated Show resolved Hide resolved
Rossano D'Angelo and others added 9 commits August 11, 2023 10:03
Co-authored-by: Allan Mckinlay <122284042+amckinlaybbc@users.noreply.github.com>
Co-authored-by: Paul Douglas Brimicombe <paul.brimicombe@bbc.co.uk>
Co-authored-by: Paul Douglas Brimicombe <paul.brimicombe@bbc.co.uk>
Co-authored-by: Paul Douglas Brimicombe <paul.brimicombe@bbc.co.uk>
…the store

As per comment, I'm returning null to rely on a message that indicates the new data has been created successfully.
Result | null was incompatible with the result type of the function.
Co-authored-by: Paul Douglas Brimicombe <paul.brimicombe@bbc.co.uk>
Copy link
Contributor

@paulbrimicombe paulbrimicombe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants