Skip to content

Latest commit

 

History

History
115 lines (103 loc) · 6.39 KB

README.md

File metadata and controls

115 lines (103 loc) · 6.39 KB

AdventTS Solutions [2023] 🎅🎄

Repository of Advent of TypeScript, types challenges, by Typehero.

SummaryInstallationChallengesRelatedLicenseAcknowledgmentsContact

Summary

This repository serves as a housing solutions to types challenges of Advent of TypeScript. AdventTS, a project developed by Typehero, offers a platform for developers to improve their type definitions skills, through a series of daily challenges spanning 25 days. The challenge begins on December 1st and culminates on December 25th.

Installation

  1. Clone the repository.
  2. Install the latest version of Node.js and globally install pnpm.
  3. Navigate to the directory where you cloned the repository with your favorite CLI.
  4. Run pnpm install in your CLI to install all necessary packages.
  5. Finally, run pnpm test in your CLI to execute all challenges/tests.

Note: If you want to run a specific challenge/test, execute pnpm run test:challenge<number>.

Challenges

# Challenge Difficulty Description
01 Create a union of any Santa favorite cookies 🟢 Show
02 Create a union with all names of the various different cookies 🟢 Show
03 Define specific type values for Present, From, and To attributes 🟢 Show
04 Replace the values of each attributes of an object with an address 🟢 Show
05 Create an array with the values of two arrays combined 🟢 Show
06 Exclude from first parameter all values inside the second one 🟢 Show
07 Rename keys of an object 🟢 Show
08 Remove attributes from an object which key names starts with "naughty" 🟢 Show
09 Reverse a string 🟠 Show
10 Check if a string ends with another string 🟢 Show
11 Deep Readonly 🟢 Show
12 Find index where Santa is inside an array 🟠 Show
13 Create a union range from the first parameter to the second one 🟠 Show
14 Turn a string into a union of strings 🟢 Show
15 Create an array of "n" strings with a string and an union of numbers 🟠 Show
16 Find index where Santa is inside an array of arrays 🟠 Show
17 Create a type definition to play Rock Paper Scissors game 🟢 Show
18 Count how many toys of the specified toy are inside the toy stack 🟢 Show
19 Create an array of "n" elements based on an array of numbers 🟠 Show
20 Turn a string into an ASCII art 🔴 Show
21 Create a type definition to play Tic Tac Toe game 🔴 Show
22 Check if a Sudoku board is valid 🔴 Show
23 Create a type definition to play Connect 4 game 🔴 Show
24 Create a type definition to play a maze with Santa as main character 🔴 Show
25 The end of the journey 🟢 Show

Related

License

This repository is under MIT License, if you want to see what you are allowed to do with the content of this repository, please visit choosealicense for more information.

Acknowledgments

Thanks to Typehero team to develop Advent of TypeScript.

Contact

If you want to contact me, please see my socials medias in my GitHub profile.