Skip to content

Instantly share code, notes, and snippets.

@jnizet
Created April 14, 2018 07:44
Show Gist options
  • Save jnizet/f8cc19c6e6c6f4937268cd5d095e851c to your computer and use it in GitHub Desktop.
Save jnizet/f8cc19c6e6c6f4937268cd5d095e851c to your computer and use it in GitHub Desktop.
interface GenericPair<L, R> {
readonly L leftElement;
readonly R rightElement;
}
@ananiy
Copy link

ananiy commented Aug 16, 2018

interface GenericPair<L, R> {
  readonly leftElement: L
  readonly rightElement: R
}

@marcinwadon
Copy link

type GenericPair<L, R> = {
 readonly leftElement: L,
 readonly rightElement: R,
}

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