Skip to content

Instantly share code, notes, and snippets.

@daGrevis
Created September 5, 2019 09:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daGrevis/6e2ee7588132d16aaab091c653a8a093 to your computer and use it in GitHub Desktop.
Save daGrevis/6e2ee7588132d16aaab091c653a8a093 to your computer and use it in GitHub Desktop.
export type MapToBlocValue<T extends {}> = {
[K in keyof T]: T[K] extends BlocSelect<any> ? T[K]['value'] : MapToBlocValue<T[K]>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment