Rebasely Beta: data may be purged

justintypescript-ultra-strict Public

Text · 14 lines · 387 B · at 9dcde16

import { type Result } from "@tsus/runtime";export type PathError =  | { kind: "invalid_cwd" }  | { kind: "escapes_root"; input: string }  | { kind: "not_absolute"; path: string };export const resolvePath = (cwd: string, input: string): Result<string, PathError> => {  // TODO};export const relativeTo = (from: string, to: string): Result<string, PathError> => {  // TODO};