export const JUST = '@typed/Just' as const
export type JUST = typeof JUST
/**
* A JSON-serializable Just data-structure
* @name Just
* @type
*/
export interface Just {
readonly [JUST]: A
}
export namespace Just {
/**
* Creates a Just given a value.
* @name Just.of(value: A): Just
*/
export function of(value: A): Just {
return { [JUST]: value }
}
}