feature: initial commit

This commit is contained in:
Andy Burke 2025-06-13 20:40:28 -07:00
commit ce024ba87a
17 changed files with 1141 additions and 0 deletions

1
utils/optional.ts Normal file
View file

@ -0,0 +1 @@
export type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>;

5
utils/sanitize.ts Normal file
View file

@ -0,0 +1,5 @@
export default function sanitize(path: string): string {
return path.replace(/^\./, '__.')
.replace(/\//g, '__fwdslash__')
.replace(/\*/g, '__star__');
}