From aeb5837f996fafaa8d4e3387255bddd06f768ce5 Mon Sep 17 00:00:00 2001 From: rajput-hemant Date: Fri, 15 Dec 2023 21:27:28 +0530 Subject: [PATCH] feat: solved day 1 type challenge Signed-off-by: rajput-hemant --- advent-of-typescript/2023/README.md | 3 +++ advent-of-typescript/2023/day_1.ts | 12 ++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 advent-of-typescript/2023/README.md create mode 100644 advent-of-typescript/2023/day_1.ts diff --git a/advent-of-typescript/2023/README.md b/advent-of-typescript/2023/README.md new file mode 100644 index 0000000..939c02a --- /dev/null +++ b/advent-of-typescript/2023/README.md @@ -0,0 +1,3 @@ +# Advent of TypeScript + +https://typehero.dev/aot-2023 diff --git a/advent-of-typescript/2023/day_1.ts b/advent-of-typescript/2023/day_1.ts new file mode 100644 index 0000000..2ab2d17 --- /dev/null +++ b/advent-of-typescript/2023/day_1.ts @@ -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>; + +/* ----------------------------------------------------------------------------------------------- + * Code Here + * -----------------------------------------------------------------------------------------------*/ + +type SantasFavoriteCookies = "ginger-bread" | "chocolate-chip";