(directory: string)
| 1 | import { ScopedKey, type ServerScope } from "@/utils/server-scope" |
| 2 | |
| 3 | const normalize = (directory: string) => directory.replace(/[\\/]+$/, "") |
| 4 | const key = (scope: ServerScope, directory: string) => ScopedKey.from(scope, normalize(directory)) |
| 5 | |
| 6 | type State = |