opencode/packages/app/src/workspaces/path-key.ts

5 lines
181 B
TypeScript

import { comparablePath } from "@opencode/util/path"
export type PathKey = string & { _brand: "PathKey" }
export const pathKey = (path: string) => comparablePath(path) as PathKey