Skip to content

Instantly share code, notes, and snippets.

@anztrax
Created November 30, 2025 00:32
Show Gist options
  • Select an option

  • Save anztrax/33ee817656ab5dd3108cee6bd6175c52 to your computer and use it in GitHub Desktop.

Select an option

Save anztrax/33ee817656ab5dd3108cee6bd6175c52 to your computer and use it in GitHub Desktop.
Simple Implementation of Exclude in Typescript
type MyExclude<T, U> = T extends U ? never: T;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment