Skip to content

Commit

Permalink
add some credit
Browse files Browse the repository at this point in the history
  • Loading branch information
vinceau committed Jan 20, 2024
1 parent c03e66c commit 9824c46
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/common/preconditions.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Based on tiny-invariant
// https://github.com/alexreardon/tiny-invariant/blob/619da0f9119558cd57aeff1ba5d022cad74f9bc7/src/tiny-invariant.ts

export class Preconditions {
public static checkExists<T>(value: T | null | undefined, message?: string): asserts value is T {
return this.checkState(value != null, message);
Expand Down

0 comments on commit 9824c46

Please sign in to comment.