Skip to content

Instantly share code, notes, and snippets.

@NyaGarcia
Created April 27, 2021 22:04
Show Gist options
  • Save NyaGarcia/d06ee677d45c915e06cd36e4129fe301 to your computer and use it in GitHub Desktop.
Save NyaGarcia/d06ee677d45c915e06cd36e4129fe301 to your computer and use it in GitHub Desktop.
Adding transform types to the FilterFalsyPipe
@Pipe({ name: "filterFalsy" })
export class FilterFalsyPipe implements PipeTransform {
transform<T>(array: T[]): T[] {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment