Skip to content

Instantly share code, notes, and snippets.

@armanozak
Created May 3, 2021 09:00
Show Gist options
  • Save armanozak/8a8526ea94bfdfc2c2478be12f53065d to your computer and use it in GitHub Desktop.
Save armanozak/8a8526ea94bfdfc2c2478be12f53065d to your computer and use it in GitHub Desktop.
[What's New in RxJS 7] How EmptyError is created in RxJS #blog #rxjs
export const EmptyError: EmptyErrorCtor = createErrorClass(
_super =>
function EmptyErrorImpl(this: any) {
_super(this);
this.name = "EmptyError";
this.message = "no elements in sequence";
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment