-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: rajput-hemant <rajput.hemant2001@gmail.com>
- Loading branch information
1 parent
d0ce2e2
commit e8c99aa
Showing
5 changed files
with
74 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +0,0 @@ | ||
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"; | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import { Equal, Expect } from "type-testing"; | ||
|
||
/* ----------------------------------------------------------------------------------------------- | ||
* Code Here | ||
* -----------------------------------------------------------------------------------------------*/ | ||
|
||
type CookieSurveyInput<T> = keyof T; | ||
|
||
/* ----------------------------------------------------------------------------------------------- | ||
* Do Not Edit Below This Line | ||
* -----------------------------------------------------------------------------------------------*/ | ||
|
||
const cookieInventory = { | ||
chocolate: 1, | ||
sugar: 20, | ||
gingerBread: 10, | ||
peanutButter: 30, | ||
snickeDoodle: 73, | ||
}; | ||
type test_cookies_actual = CookieSurveyInput<typeof cookieInventory>; | ||
// ^? | ||
type test_cookies_expected = | ||
| "chocolate" | ||
| "sugar" | ||
| "gingerBread" | ||
| "peanutButter" | ||
| "snickeDoodle"; | ||
type test_cookies = Expect<Equal<test_cookies_actual, test_cookies_expected>>; | ||
|
||
const unrelated = { | ||
hi: 1, | ||
hi2: 1, | ||
hi3: 1, | ||
hi4: 1, | ||
hi5: 1, | ||
hi6: 1, | ||
hi7: 1, | ||
}; | ||
type test_unrelated_actual = CookieSurveyInput<typeof unrelated>; | ||
// ^? | ||
type test_unrealted_expected = | ||
| "hi" | ||
| "hi2" | ||
| "hi3" | ||
| "hi4" | ||
| "hi5" | ||
| "hi6" | ||
| "hi7"; | ||
type test_unrelated = Expect< | ||
Equal<test_unrelated_actual, test_unrealted_expected> | ||
>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"extends": [ | ||
"local>rajput-hemant/renovate-config" | ||
] | ||
"extends": ["local>rajput-hemant/renovate-config"] | ||
} |