Skip to content

Commit

Permalink
feat: solved day 1 type challenge
Browse files Browse the repository at this point in the history
Signed-off-by: rajput-hemant <[email protected]>
  • Loading branch information
rajput-hemant committed Dec 15, 2023
1 parent 2815610 commit aeb5837
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions advent-of-typescript/2023/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Advent of TypeScript

https://typehero.dev/aot-2023
12 changes: 12 additions & 0 deletions advent-of-typescript/2023/day_1.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { Expect, Equal } from "type-testing";

type test_0_actual = SantasFavoriteCookies;
// ^?
type test_0_expected = "ginger-bread" | "chocolate-chip";
type test_0 = Expect<Equal<test_0_actual, test_0_expected>>;

/* -----------------------------------------------------------------------------------------------
* Code Here
* -----------------------------------------------------------------------------------------------*/

type SantasFavoriteCookies = "ginger-bread" | "chocolate-chip";

0 comments on commit aeb5837

Please sign in to comment.