repo
stringlengths
7
64
file_url
stringlengths
81
338
file_path
stringlengths
5
257
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:25:31
2026-01-05 01:50:38
truncated
bool
2 classes
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/00270-hard-typed-get/template.ts
questions/00270-hard-typed-get/template.ts
type Get<T, K> = string
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/27862-medium-cartesianproduct/test-cases.ts
questions/27862-medium-cartesianproduct/test-cases.ts
import type { Equal, Expect } from '@type-challenges/utils' type cases = [ Expect<Equal<CartesianProduct<1 | 2, 'a' | 'b'>, [2, 'a'] | [1, 'a'] | [2, 'b'] | [1, 'b']>>, Expect<Equal<CartesianProduct<1 | 2 | 3, 'a' | 'b' | 'c' >, [2, 'a'] | [1, 'a'] | [3, 'a'] | [2, 'b'] | [1, 'b'] | [3, 'b'] | [2, 'c'] | [1, 'c'] ...
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/27862-medium-cartesianproduct/template.ts
questions/27862-medium-cartesianproduct/template.ts
type CartesianProduct<T, U> = any
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/00529-medium-absolute/test-cases.ts
questions/00529-medium-absolute/test-cases.ts
import type { Equal, Expect } from '@type-challenges/utils' type cases = [ Expect<Equal<Absolute<0>, '0'>>, Expect<Equal<Absolute<-0>, '0'>>, Expect<Equal<Absolute<10>, '10'>>, Expect<Equal<Absolute<-5>, '5'>>, Expect<Equal<Absolute<'0'>, '0'>>, Expect<Equal<Absolute<'-0'>, '0'>>, Expect<Equal<Absolute<'...
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/00529-medium-absolute/template.ts
questions/00529-medium-absolute/template.ts
type Absolute<T extends number | string | bigint> = any
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/00925-extreme-assert-array-index/test-cases.ts
questions/00925-extreme-assert-array-index/test-cases.ts
const matrix = [ [3, 4], [5, 6], [7, 8], ] assertArrayIndex(matrix, 'rows') let sum = 0 for (let i = 0 as Index<typeof matrix>; i < matrix.length; i += 1) { const columns: number[] = matrix[i] // @ts-expect-error: number | undefined in not assignable to number const x: number[] = matrix[0] assertArra...
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/00925-extreme-assert-array-index/template.ts
questions/00925-extreme-assert-array-index/template.ts
function assertArrayIndex(array: readonly unknown[], key: string) {} type Index<Array> = any
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/01978-medium-percentage-parser/test-cases.ts
questions/01978-medium-percentage-parser/test-cases.ts
import type { Equal, Expect } from '@type-challenges/utils' type Case0 = ['', '', ''] type Case1 = ['+', '', ''] type Case2 = ['+', '1', ''] type Case3 = ['+', '100', ''] type Case4 = ['+', '100', '%'] type Case5 = ['', '100', '%'] type Case6 = ['-', '100', '%'] type Case7 = ['-', '100', ''] type Case8 = ['-', '1', ''...
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/01978-medium-percentage-parser/template.ts
questions/01978-medium-percentage-parser/template.ts
type PercentageParser<A extends string> = any
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/29785-medium-deep-omit/test-cases.ts
questions/29785-medium-deep-omit/test-cases.ts
import type { Equal, Expect } from '@type-challenges/utils' type obj = { person: { name: string age: { value: number } } } type cases = [ Expect<Equal<DeepOmit<obj, 'person'>, {}>>, Expect<Equal<DeepOmit<obj, 'person.name'>, { person: { age: { value: number } } }>>, Expect<Equal<DeepOmit<o...
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/29785-medium-deep-omit/template.ts
questions/29785-medium-deep-omit/template.ts
type DeepOmit = any
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/25747-hard-isnegativenumber/test-cases.ts
questions/25747-hard-isnegativenumber/test-cases.ts
import type { Equal, Expect } from '@type-challenges/utils' type cases = [ Expect<Equal<IsNegativeNumber<0>, false>>, Expect<Equal<IsNegativeNumber<number>, never>>, Expect<Equal<IsNegativeNumber<-1 | -2>, never>>, Expect<Equal<IsNegativeNumber<-1>, true>>, Expect<Equal<IsNegativeNumber<-1.9>, true>>, Expe...
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/25747-hard-isnegativenumber/template.ts
questions/25747-hard-isnegativenumber/template.ts
type IsNegativeNumber<T extends number> = any
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/02852-medium-omitbytype/test-cases.ts
questions/02852-medium-omitbytype/test-cases.ts
import type { Equal, Expect } from '@type-challenges/utils' interface Model { name: string count: number isReadonly: boolean isEnable: boolean } type cases = [ Expect<Equal<OmitByType<Model, boolean>, { name: string, count: number }>>, Expect<Equal<OmitByType<Model, string>, { count: number, isReadonly: b...
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/02852-medium-omitbytype/template.ts
questions/02852-medium-omitbytype/template.ts
type OmitByType<T, U> = any
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/02070-medium-drop-char/test-cases.ts
questions/02070-medium-drop-char/test-cases.ts
import type { Equal, Expect } from '@type-challenges/utils' type cases = [ // @ts-expect-error Expect<Equal<DropChar<'butter fly!', ''>, 'butterfly!'>>, Expect<Equal<DropChar<'butter fly!', ' '>, 'butterfly!'>>, Expect<Equal<DropChar<'butter fly!', '!'>, 'butter fly'>>, Expect<Equal<DropChar<' butter fly!...
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/02070-medium-drop-char/template.ts
questions/02070-medium-drop-char/template.ts
type DropChar<S, C> = any
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/35191-medium-trace/test-cases.ts
questions/35191-medium-trace/test-cases.ts
import type { Equal, Expect } from '@type-challenges/utils' type cases = [ Expect<Equal<Trace<[[1, 2], [3, 4]]>, 1 | 4>>, Expect<Equal<Trace<[[0, 1, 1], [2, 0, 2], [3, 3, 0]]>, 0>>, Expect<Equal<Trace<[['a', 'b', ''], ['c', '', ''], ['d', 'e', 'f']]>, 'a' | '' | 'f'>>, ]
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/35191-medium-trace/template.ts
questions/35191-medium-trace/template.ts
type Trace<T extends any[][]> = any
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/00059-hard-get-optional/test-cases.ts
questions/00059-hard-get-optional/test-cases.ts
import type { Equal, Expect } from '@type-challenges/utils' type cases = [ Expect<Equal<GetOptional<{ foo: number, bar?: string }>, { bar?: string }>>, Expect<Equal<GetOptional<{ foo: undefined, bar?: undefined }>, { bar?: undefined }>>, ]
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/00059-hard-get-optional/template.ts
questions/00059-hard-get-optional/template.ts
type GetOptional<T> = any
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/09989-medium-tong-ji-shu-zu-zhong-de-yuan-su-ge-shu/test-cases.ts
questions/09989-medium-tong-ji-shu-zu-zhong-de-yuan-su-ge-shu/test-cases.ts
import type { Equal, Expect } from '@type-challenges/utils' type cases = [ Expect<Equal<CountElementNumberToObject<[1, 2, 3, 4, 5]>, { 1: 1 2: 1 3: 1 4: 1 5: 1 } >>, Expect<Equal<CountElementNumberToObject<[1, 2, 3, 4, 5, [1, 2, 3]]>, { 1: 2 2: 2 3: 2 4: 1 5: 1 }>>, Ex...
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/09989-medium-tong-ji-shu-zu-zhong-de-yuan-su-ge-shu/template.ts
questions/09989-medium-tong-ji-shu-zu-zhong-de-yuan-su-ge-shu/template.ts
type CountElementNumberToObject<T> = any
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/02946-medium-objectentries/test-cases.ts
questions/02946-medium-objectentries/test-cases.ts
import type { Equal, Expect } from '@type-challenges/utils' interface Model { name: string age: number locations: string[] | null } type ModelEntries = ['name', string] | ['age', number] | ['locations', string[] | null] type cases = [ Expect<Equal<ObjectEntries<Model>, ModelEntries>>, Expect<Equal<ObjectEn...
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/02946-medium-objectentries/template.ts
questions/02946-medium-objectentries/template.ts
type ObjectEntries<T> = any
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/00014-easy-first/test-cases.ts
questions/00014-easy-first/test-cases.ts
import type { Equal, Expect } from '@type-challenges/utils' type cases = [ Expect<Equal<First<[3, 2, 1]>, 3>>, Expect<Equal<First<[() => 123, { a: string }]>, () => 123>>, Expect<Equal<First<[]>, never>>, Expect<Equal<First<[undefined]>, undefined>>, ] type errors = [ // @ts-expect-error First<'notArray'>...
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/00014-easy-first/template.ts
questions/00014-easy-first/template.ts
type First<T extends any[]> = any
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/08804-hard-two-sum/test-cases.ts
questions/08804-hard-two-sum/test-cases.ts
import type { Equal, Expect } from '@type-challenges/utils' type cases = [ Expect<Equal<TwoSum<[3, 3], 6>, true>>, Expect<Equal<TwoSum<[3, 2, 4], 6>, true>>, Expect<Equal<TwoSum<[2, 7, 11, 15], 15>, false>>, Expect<Equal<TwoSum<[2, 7, 11, 15], 9>, true>>, Expect<Equal<TwoSum<[1, 2, 3], 0>, false>>, Expect<...
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/08804-hard-two-sum/template.ts
questions/08804-hard-two-sum/template.ts
type TwoSum<T extends number[], U extends number> = any
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/00151-extreme-query-string-parser/test-cases.ts
questions/00151-extreme-query-string-parser/test-cases.ts
import type { Equal, Expect } from '@type-challenges/utils' type cases = [ Expect<Equal<ParseQueryString<''>, {}>>, Expect<Equal<ParseQueryString<'k1'>, { k1: true }>>, Expect<Equal<ParseQueryString<'k1&k1'>, { k1: true }>>, Expect<Equal<ParseQueryString<'k1&k2'>, { k1: true, k2: true }>>, Expect<Equal<Parse...
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/00151-extreme-query-string-parser/template.ts
questions/00151-extreme-query-string-parser/template.ts
type ParseQueryString = any
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/00730-hard-union-to-tuple/test-cases.ts
questions/00730-hard-union-to-tuple/test-cases.ts
import type { Equal, Expect } from '@type-challenges/utils' type ExtractValuesOfTuple<T extends any[]> = T[keyof T & number] type cases = [ Expect<Equal<UnionToTuple<'a' | 'b'>['length'], 2>>, Expect<Equal<ExtractValuesOfTuple<UnionToTuple<'a' | 'b'>>, 'a' | 'b'>>, Expect<Equal<ExtractValuesOfTuple<UnionToTuple...
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/00730-hard-union-to-tuple/template.ts
questions/00730-hard-union-to-tuple/template.ts
type UnionToTuple<T> = any
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/00055-hard-union-to-intersection/test-cases.ts
questions/00055-hard-union-to-intersection/test-cases.ts
import type { Equal, Expect } from '@type-challenges/utils' type cases = [ Expect<Equal<UnionToIntersection<'foo' | 42 | true>, 'foo' & 42 & true>>, Expect<Equal<UnionToIntersection<(() => 'foo') | ((i: 42) => true)>, (() => 'foo') & ((i: 42) => true)>>, ]
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/00055-hard-union-to-intersection/template.ts
questions/00055-hard-union-to-intersection/template.ts
type UnionToIntersection<U> = any
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/35045-medium-longest-common-prefix/test-cases.ts
questions/35045-medium-longest-common-prefix/test-cases.ts
import type { Equal, Expect } from '@type-challenges/utils' type cases = [ Expect<Equal<LongestCommonPrefix<['flower', 'flow', 'flight']>, 'fl'>>, Expect<Equal<LongestCommonPrefix<['dog', 'racecar', 'race']>, ''>>, Expect<Equal<LongestCommonPrefix<['', '', '']>, ''>>, Expect<Equal<LongestCommonPrefix<['a', '',...
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/35045-medium-longest-common-prefix/template.ts
questions/35045-medium-longest-common-prefix/template.ts
type LongestCommonPrefix<T extends string[], P extends string = ''> = any
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/00645-medium-diff/test-cases.ts
questions/00645-medium-diff/test-cases.ts
import type { Equal, Expect } from '@type-challenges/utils' type Foo = { name: string age: string } type Bar = { name: string age: string gender: number } type Coo = { name: string gender: number } type cases = [ Expect<Equal<Diff<Foo, Bar>, { gender: number }>>, Expect<Equal<Diff<Bar, Foo>, { gende...
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/00645-medium-diff/template.ts
questions/00645-medium-diff/template.ts
type Diff<O, O1> = any
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/02857-hard-isrequiredkey/test-cases.ts
questions/02857-hard-isrequiredkey/test-cases.ts
import type { Equal, Expect } from '@type-challenges/utils' type cases = [ Expect<Equal<IsRequiredKey<{ a: number, b?: string }, 'a'>, true>>, Expect<Equal<IsRequiredKey<{ a: undefined, b: string }, 'a'>, true>>, Expect<Equal<IsRequiredKey<{ a: number, b?: string }, 'b'>, false>>, Expect<Equal<IsRequiredKey<{ ...
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/02857-hard-isrequiredkey/template.ts
questions/02857-hard-isrequiredkey/template.ts
type IsRequiredKey<T, K extends keyof T> = any
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/06141-hard-binary-to-decimal/test-cases.ts
questions/06141-hard-binary-to-decimal/test-cases.ts
import type { Equal, Expect } from '@type-challenges/utils' type cases = [ Expect<Equal<BinaryToDecimal<'10'>, 2>>, Expect<Equal<BinaryToDecimal<'0011'>, 3>>, Expect<Equal<BinaryToDecimal<'00000000'>, 0>>, Expect<Equal<BinaryToDecimal<'11111111'>, 255>>, Expect<Equal<BinaryToDecimal<'10101010'>, 170>>, ]
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/06141-hard-binary-to-decimal/template.ts
questions/06141-hard-binary-to-decimal/template.ts
type BinaryToDecimal<S extends string> = any
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/09775-hard-capitalize-nest-object-keys/test-cases.ts
questions/09775-hard-capitalize-nest-object-keys/test-cases.ts
import type { Equal, Expect } from '@type-challenges/utils' type foo = { foo: string bars: [{ foo: string }] } type Foo = { Foo: string Bars: [{ Foo: string }] } type cases = [ Expect<Equal<Foo, CapitalizeNestObjectKeys<foo>>>, ]
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/09775-hard-capitalize-nest-object-keys/template.ts
questions/09775-hard-capitalize-nest-object-keys/template.ts
type CapitalizeNestObjectKeys<T> = any
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/00010-medium-tuple-to-union/test-cases.ts
questions/00010-medium-tuple-to-union/test-cases.ts
import type { Equal, Expect } from '@type-challenges/utils' type cases = [ Expect<Equal<TupleToUnion<[123, '456', true]>, 123 | '456' | true>>, Expect<Equal<TupleToUnion<[123]>, 123>>, ]
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/00010-medium-tuple-to-union/template.ts
questions/00010-medium-tuple-to-union/template.ts
type TupleToUnion<T> = any
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/00531-medium-string-to-union/test-cases.ts
questions/00531-medium-string-to-union/test-cases.ts
import type { Equal, Expect } from '@type-challenges/utils' type cases = [ Expect<Equal<StringToUnion<''>, never>>, Expect<Equal<StringToUnion<'t'>, 't'>>, Expect<Equal<StringToUnion<'hello'>, 'h' | 'e' | 'l' | 'l' | 'o'>>, Expect<Equal<StringToUnion<'coronavirus'>, 'c' | 'o' | 'r' | 'o' | 'n' | 'a' | 'v' | 'i...
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/00531-medium-string-to-union/template.ts
questions/00531-medium-string-to-union/template.ts
type StringToUnion<T extends string> = any
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/02759-medium-requiredbykeys/test-cases.ts
questions/02759-medium-requiredbykeys/test-cases.ts
import type { Equal, Expect } from '@type-challenges/utils' interface User { name?: string age?: number address?: string } interface UserRequiredName { name: string age?: number address?: string } interface UserRequiredNameAndAge { name: string age: number address?: string } type cases = [ Expec...
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/02759-medium-requiredbykeys/template.ts
questions/02759-medium-requiredbykeys/template.ts
type RequiredByKeys<T, K> = any
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/32427-hard-unbox/test-cases.ts
questions/32427-hard-unbox/test-cases.ts
import type { Equal, Expect } from '@type-challenges/utils' type cases = [ // Base cases Expect<Equal<Unbox<number>, number>>, Expect<Equal<Unbox<() => number>, number>>, Expect<Equal<Unbox<() => number | string>, number | string>>, Expect<Equal<Unbox<number[]>, number>>, Expect<Equal<Unbox<(number | strin...
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/32427-hard-unbox/template.ts
questions/32427-hard-unbox/template.ts
type Unbox<T> = any
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/00009-medium-deep-readonly/test-cases.ts
questions/00009-medium-deep-readonly/test-cases.ts
import type { Equal, Expect } from '@type-challenges/utils' type cases = [ Expect<Equal<DeepReadonly<X1>, Expected1>>, Expect<Equal<DeepReadonly<X2>, Expected2>>, ] type X1 = { a: () => 22 b: string c: { d: boolean e: { g: { h: { i: true j: 'string' } ...
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/00009-medium-deep-readonly/template.ts
questions/00009-medium-deep-readonly/template.ts
type DeepReadonly<T> = any
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/07258-hard-object-key-paths/test-cases.ts
questions/07258-hard-object-key-paths/test-cases.ts
import type { Equal, Expect, ExpectExtends } from '@type-challenges/utils' const ref = { count: 1, person: { name: 'cattchen', age: 22, books: ['book1', 'book2'], pets: [ { type: 'cat', }, ], }, } type cases = [ Expect<Equal<ObjectKeyPaths<{ name: string, age: number }>...
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/07258-hard-object-key-paths/template.ts
questions/07258-hard-object-key-paths/template.ts
type ObjectKeyPaths<T extends object> = any
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/00016-medium-pop/test-cases.ts
questions/00016-medium-pop/test-cases.ts
import type { Equal, Expect } from '@type-challenges/utils' type cases = [ Expect<Equal<Pop<[3, 2, 1]>, [3, 2]>>, Expect<Equal<Pop<['a', 'b', 'c', 'd']>, ['a', 'b', 'c']>>, Expect<Equal<Pop<[]>, []>>, ]
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/00016-medium-pop/template.ts
questions/00016-medium-pop/template.ts
type Pop<T extends any[]> = any
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/03060-easy-unshift/test-cases.ts
questions/03060-easy-unshift/test-cases.ts
import type { Equal, Expect } from '@type-challenges/utils' type cases = [ Expect<Equal<Unshift<[], 1>, [1]>>, Expect<Equal<Unshift<[1, 2], 0>, [0, 1, 2]>>, Expect<Equal<Unshift<['1', 2, '3'], boolean>, [boolean, '1', 2, '3']>>, ]
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/03060-easy-unshift/template.ts
questions/03060-easy-unshift/template.ts
type Unshift<T, U> = any
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/17973-medium-deepmutable/test-cases.ts
questions/17973-medium-deepmutable/test-cases.ts
import type { Equal, Expect } from '@type-challenges/utils' interface Test1 { readonly title: string readonly description: string readonly completed: boolean readonly meta: { readonly author: string } } type Test2 = { readonly a: () => 1 readonly b: string readonly c: { readonly d: boolean ...
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/17973-medium-deepmutable/template.ts
questions/17973-medium-deepmutable/template.ts
type DeepMutable = any
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/28333-medium-public-type/test-cases.ts
questions/28333-medium-public-type/test-cases.ts
import type { Equal, Expect } from '@type-challenges/utils' type cases = [ Expect<Equal<PublicType<{ a: number }>, { a: number }>>, Expect<Equal<PublicType<{ _b: string | bigint }>, {}>>, Expect<Equal<PublicType<{ readonly c?: number }>, { readonly c?: number }>>, Expect<Equal<PublicType<{ d: string, _e: strin...
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/28333-medium-public-type/template.ts
questions/28333-medium-public-type/template.ts
type PublicType<T extends object> = any
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/34007-medium-compare-array-length/test-cases.ts
questions/34007-medium-compare-array-length/test-cases.ts
import type { Equal, Expect } from '@type-challenges/utils' type cases = [ Expect<Equal<CompareArrayLength<[1, 2, 3, 4], [5, 6]>, 1>>, Expect<Equal<CompareArrayLength<[1, 2], [3, 4, 5, 6]>, -1>>, Expect<Equal<CompareArrayLength<[], []>, 0>>, Expect<Equal<CompareArrayLength<[1, 2, 3], [4, 5, 6]>, 0>>, ]
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/34007-medium-compare-array-length/template.ts
questions/34007-medium-compare-array-length/template.ts
type CompareArrayLength<T extends any[], U extends any[]> = any
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/04499-medium-chunk/test-cases.ts
questions/04499-medium-chunk/test-cases.ts
import type { Equal, Expect } from '@type-challenges/utils' type cases = [ Expect<Equal<Chunk<[], 1>, []>>, Expect<Equal<Chunk<[1, 2, 3], 1>, [[1], [2], [3]]>>, Expect<Equal<Chunk<[1, 2, 3], 2>, [[1, 2], [3]]>>, Expect<Equal<Chunk<[1, 2, 3, 4], 2>, [[1, 2], [3, 4]]>>, Expect<Equal<Chunk<[1, 2, 3, 4], 5>, [[1...
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/04499-medium-chunk/template.ts
questions/04499-medium-chunk/template.ts
type Chunk = any
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/08987-medium-subsequence/test-cases.ts
questions/08987-medium-subsequence/test-cases.ts
import type { Equal, Expect } from '@type-challenges/utils' type cases = [ Expect<Equal<Subsequence<[1, 2]>, [] | [1] | [2] | [1, 2]>>, Expect<Equal<Subsequence<[1, 2, 3]>, [] | [1] | [2] | [1, 2] | [3] | [1, 3] | [2, 3] | [1, 2, 3]>>, Expect<Equal<Subsequence<[1, 2, 3, 4, 5]>, [] | [1] | [2] | [3] | [4] | [5]...
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/08987-medium-subsequence/template.ts
questions/08987-medium-subsequence/template.ts
type Subsequence<T extends any[]> = any
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/04425-medium-greater-than/test-cases.ts
questions/04425-medium-greater-than/test-cases.ts
import type { Equal, Expect } from '@type-challenges/utils' type cases = [ Expect<Equal<GreaterThan<1, 0>, true>>, Expect<Equal<GreaterThan<5, 4>, true>>, Expect<Equal<GreaterThan<4, 5>, false>>, Expect<Equal<GreaterThan<0, 0>, false>>, Expect<Equal<GreaterThan<10, 9>, true>>, Expect<Equal<GreaterThan<20, ...
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/04425-medium-greater-than/template.ts
questions/04425-medium-greater-than/template.ts
type GreaterThan<T extends number, U extends number> = any
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/00090-hard-optional-keys/test-cases.ts
questions/00090-hard-optional-keys/test-cases.ts
import type { Equal, Expect } from '@type-challenges/utils' type cases = [ Expect<Equal<OptionalKeys<{ a: number, b?: string }>, 'b'>>, Expect<Equal<OptionalKeys<{ a: undefined, b?: undefined }>, 'b'>>, Expect<Equal<OptionalKeys<{ a: undefined, b?: undefined, c?: string, d?: null }>, 'b' | 'c' | 'd'>>, Expect<...
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/00090-hard-optional-keys/template.ts
questions/00090-hard-optional-keys/template.ts
type OptionalKeys<T> = any
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/00089-hard-required-keys/test-cases.ts
questions/00089-hard-required-keys/test-cases.ts
import type { Equal, Expect } from '@type-challenges/utils' type cases = [ Expect<Equal<RequiredKeys<{ a: number, b?: string }>, 'a'>>, Expect<Equal<RequiredKeys<{ a: undefined, b?: undefined }>, 'a'>>, Expect<Equal<RequiredKeys<{ a: undefined, b?: undefined, c: string, d: null }>, 'a' | 'c' | 'd'>>, Expect<Eq...
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/00089-hard-required-keys/template.ts
questions/00089-hard-required-keys/template.ts
type RequiredKeys<T> = any
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/02688-medium-startswith/test-cases.ts
questions/02688-medium-startswith/test-cases.ts
import type { Equal, Expect } from '@type-challenges/utils' type cases = [ Expect<Equal<StartsWith<'abc', 'ac'>, false>>, Expect<Equal<StartsWith<'abc', 'ab'>, true>>, Expect<Equal<StartsWith<'abc', 'abc'>, true>>, Expect<Equal<StartsWith<'abc', 'abcd'>, false>>, Expect<Equal<StartsWith<'abc', ''>, true>>, ...
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/02688-medium-startswith/template.ts
questions/02688-medium-startswith/template.ts
type StartsWith<T extends string, U extends string> = any
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/06228-extreme-json-parser/test-cases.ts
questions/06228-extreme-json-parser/test-cases.ts
import type { Equal, Expect } from '@type-challenges/utils' type cases = [ Expect<Equal<( Parse<` { "a": "b", "b": false, "c": [true, false, "hello", { "a": "b", "b": false }], "nil": null } `> ), ( { nil: null c: [...
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/06228-extreme-json-parser/template.ts
questions/06228-extreme-json-parser/template.ts
type Pure<T> = { [P in keyof T]: T[P] extends object ? Pure<T[P]> : T[P] } type SetProperty<T, K extends PropertyKey, V> = { [P in (keyof T) | K]: P extends K ? V : P extends keyof T ? T[P] : never } type Token = any type ParseResult<T, K extends Token[]> = [T, K] type Tokenize<T extends string, S extends Token[]...
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/01042-medium-isnever/test-cases.ts
questions/01042-medium-isnever/test-cases.ts
import type { Equal, Expect } from '@type-challenges/utils' type cases = [ Expect<Equal<IsNever<never>, true>>, Expect<Equal<IsNever<never | string>, false>>, Expect<Equal<IsNever<''>, false>>, Expect<Equal<IsNever<undefined>, false>>, Expect<Equal<IsNever<null>, false>>, Expect<Equal<IsNever<[]>, false>>,...
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/01042-medium-isnever/template.ts
questions/01042-medium-isnever/template.ts
type IsNever<T> = any
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/00476-extreme-sum/test-cases.ts
questions/00476-extreme-sum/test-cases.ts
import type { Equal, Expect } from '@type-challenges/utils' type cases = [ Expect<Equal<Sum<2, 3>, '5'>>, Expect<Equal<Sum<'13', '21'>, '34'>>, Expect<Equal<Sum<'328', 7>, '335'>>, Expect<Equal<Sum<1_000_000_000_000n, '123'>, '1000000000123'>>, Expect<Equal<Sum<9999, 1>, '10000'>>, Expect<Equal<Sum<4325234...
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/00476-extreme-sum/template.ts
questions/00476-extreme-sum/template.ts
type Sum<A extends string | number | bigint, B extends string | number | bigint> = string
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/35991-medium-myuppercase/test-cases.ts
questions/35991-medium-myuppercase/test-cases.ts
import type { Equal, Expect } from '@type-challenges/utils' type cases = [ Expect<Equal<MyUppercase<'a'>, 'A'>>, Expect<Equal<MyUppercase<'Z'>, 'Z'>>, Expect<Equal<MyUppercase<'A z h yy 😃cda\n\t a '>, 'A Z H YY 😃CDA\n\t A '>>, ]
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/35991-medium-myuppercase/template.ts
questions/35991-medium-myuppercase/template.ts
type MyUppercase<T extends string> = any
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/27932-medium-mergeall/test-cases.ts
questions/27932-medium-mergeall/test-cases.ts
import type { Equal, Expect } from '@type-challenges/utils' type cases = [ Expect<Equal<MergeAll<[]>, {} >>, Expect<Equal<MergeAll<[{ a: 1 }]>, { a: 1 }>>, Expect<Equal< MergeAll<[{ a: string }, { a: string }]>, { a: string } > >, Expect<Equal< MergeAll<[{ }, { a: string }]>, { a: string } > ...
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/27932-medium-mergeall/template.ts
questions/27932-medium-mergeall/template.ts
type MergeAll<XS> = any
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/03062-medium-shift/test-cases.ts
questions/03062-medium-shift/test-cases.ts
import type { Equal, Expect } from '@type-challenges/utils' type cases = [ // @ts-expect-error Shift<unknown>, Expect<Equal<Shift<[]>, []>>, Expect<Equal<Shift<[1]>, []>>, Expect<Equal<Shift<[3, 2, 1]>, [2, 1]>>, Expect<Equal<Shift<['a', 'b', 'c', 'd']>, ['b', 'c', 'd']>>, ]
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/03062-medium-shift/template.ts
questions/03062-medium-shift/template.ts
type Shift<T> = any
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/00003-medium-omit/test-cases.ts
questions/00003-medium-omit/test-cases.ts
import type { Equal, Expect } from '@type-challenges/utils' type cases = [ Expect<Equal<Expected1, MyOmit<Todo, 'description'>>>, Expect<Equal<Expected2, MyOmit<Todo, 'description' | 'completed'>>>, Expect<Equal<Expected3, MyOmit<Todo1, 'description' | 'completed'>>>, ] // @ts-expect-error type error = MyOmit<T...
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/00003-medium-omit/template.ts
questions/00003-medium-omit/template.ts
type MyOmit<T, K> = any
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/00114-hard-camelcase/test-cases.ts
questions/00114-hard-camelcase/test-cases.ts
import type { Equal, Expect } from '@type-challenges/utils' type cases = [ Expect<Equal<CamelCase<'foobar'>, 'foobar'>>, Expect<Equal<CamelCase<'FOOBAR'>, 'foobar'>>, Expect<Equal<CamelCase<'foo_bar'>, 'fooBar'>>, Expect<Equal<CamelCase<'foo__bar'>, 'foo_Bar'>>, Expect<Equal<CamelCase<'foo_$bar'>, 'foo_$bar'...
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/00114-hard-camelcase/template.ts
questions/00114-hard-camelcase/template.ts
type CamelCase<S extends string> = any
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/00399-hard-tuple-filter/test-cases.ts
questions/00399-hard-tuple-filter/test-cases.ts
import type { Equal, Expect } from '@type-challenges/utils' type cases = [ Expect<Equal<FilterOut<[], never>, []>>, Expect<Equal<FilterOut<[never], never>, []>>, Expect<Equal<FilterOut<['a', never], never>, ['a']>>, Expect<Equal<FilterOut<[1, never, 'a'], never>, [1, 'a']>>, Expect<Equal<FilterOut<[never, 1,...
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/00399-hard-tuple-filter/template.ts
questions/00399-hard-tuple-filter/template.ts
type FilterOut<T extends any[], F> = any
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/00472-hard-tuple-to-enum-object/test-cases.ts
questions/00472-hard-tuple-to-enum-object/test-cases.ts
import type { Equal, Expect } from '@type-challenges/utils' const OperatingSystem = ['macOS', 'Windows', 'Linux'] as const const Command = ['echo', 'grep', 'sed', 'awk', 'cut', 'uniq', 'head', 'tail', 'xargs', 'shift'] as const type cases = [ Expect<Equal<Enum<[]>, {}>>, Expect<Equal< Enum<typeof OperatingSyste...
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/00472-hard-tuple-to-enum-object/template.ts
questions/00472-hard-tuple-to-enum-object/template.ts
type Enum<T extends readonly string[], N extends boolean = false> = any
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false
type-challenges/type-challenges
https://github.com/type-challenges/type-challenges/blob/00122042c4c58f12227e97c68235dfde1fd2129d/questions/00002-medium-return-type/test-cases.ts
questions/00002-medium-return-type/test-cases.ts
import type { Equal, Expect } from '@type-challenges/utils' type cases = [ Expect<Equal<string, MyReturnType<() => string>>>, Expect<Equal<123, MyReturnType<() => 123>>>, Expect<Equal<ComplexObject, MyReturnType<() => ComplexObject>>>, Expect<Equal<Promise<boolean>, MyReturnType<() => Promise<boolean>>>>, Ex...
typescript
MIT
00122042c4c58f12227e97c68235dfde1fd2129d
2026-01-04T15:39:52.431107Z
false