Skip to content

Commit

Permalink
[#176575256] restore
Browse files Browse the repository at this point in the history
  • Loading branch information
Undermaken committed Jan 29, 2021
1 parent ba5eef0 commit bfc659f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ts/utils/pot.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import * as pot from "italia-ts-commons/lib/pot";

// return true if pot is some and not someError and not someLoading
export const isStrictSome = <T, E>(p: pot.Pot<T, E>): p is Some<T> =>
p.kind === "PotSome";
export const isStrictSome = <T, E>(p: pot.Pot<T, E>) => p.kind === "PotSome";

0 comments on commit bfc659f

Please sign in to comment.