Skip to content

Instantly share code, notes, and snippets.

@OnkelTem
Last active June 2, 2022 16:48
Show Gist options
  • Save OnkelTem/46abb04c4705e3a276f8313222903c81 to your computer and use it in GitHub Desktop.
Save OnkelTem/46abb04c4705e3a276f8313222903c81 to your computer and use it in GitHub Desktop.

asd sads dd ad


asd sd da

type TupleToObject = { [K in T[number]]: K }

AAA

/* _____________ Test Cases _____________ */ import type { Equal, Expect } from '@type-challenges/utils'

const tuple = ['tesla', 'model 3', 'model X', 'model Y'] as const

type cases = [ Expect<Equal<TupleToObject, { tesla: 'tesla'; 'model 3': 'model 3'; 'model X': 'model X'; 'model Y': 'model Y' }>>, ]


asd adsds dadw5n 345 3535

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment