Rebasely Beta: data may be purged

justintypescript-ultra-strict Public

Text · 18 lines · 388 B · at b0c0c21

import { type Option, type Result } from "@tsus/runtime";export type Config = {  host: string;  port: number;  debug: boolean;  timeoutMs: Option<number>;  tags: string[];};export type ConfigError = {  kind: "missing" | "wrong_type" | "out_of_range";  field: string;};export const parseConfig = (raw: Record<string, unknown>): Result<Config, ConfigError> => {  // TODO};