Rebasely Beta: data may be purged

justintypescript-ultra-strict Public

Text · 13 lines · 362 B · at 9ba9e6b

import { Some, None, type Option } from "@tsus/runtime";const email: Option<string> = Some("justin@example.com");const missing: Option<string> = None;const describe = (opt: Option<string>): string =>  match (opt) {    Some(addr) => `Reach me at ${addr}`,    None => "No email on file",  };console.log(describe(email));console.log(describe(missing));