Skip to content

Instantly share code, notes, and snippets.

@wolak041
Created May 16, 2023 16:36
Show Gist options
  • Save wolak041/fe7fa19af01b6946eb96ca3234e36837 to your computer and use it in GitHub Desktop.
Save wolak041/fe7fa19af01b6946eb96ca3234e36837 to your computer and use it in GitHub Desktop.
interface Animal {}
interface Dog extends Animal {}
// boolean
type NestedExample = Dog extends Animal ? (RegExp extends Animal ? number : boolean) : string;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment