// https://stackoverflow.com/a/73913774/21032793 export const isFulfilled = (p: PromiseSettledResult): p is PromiseFulfilledResult => p.status === "fulfilled"; // https://stackoverflow.com/a/47636222/21032793 export const AsBoolean = (x: T | false | null | undefined): x is T => Boolean(x); export type Maybe = T | undefined; export type ObjValues = ObjType[keyof ObjType];