fruit-company
Version:
Apple services library
12 lines (11 loc) • 403 B
TypeScript
/**
* The chance of a probability measurement leading to an event, such as rain.
*/
export type Chance = "none" | "slight" | "possible" | "likely" | "certain";
/**
* Determine the chance of a given probability value.
*
* @param p A probability value in the range [0, 1].
* @returns A chance category for the given probability.
*/
export declare function probabilityChanceFrom(p: number): Chance;