(id: string)
| 118 | export function createOpenADENodeYjsStorage(rootDir: string, options: OpenADENodeYjsStorageOptions = {}): OpenADENodeYjsStorage { |
| 119 | const legacyNestedRootDir = options.legacyNestedRootDir === undefined ? defaultLegacyNestedRootDir(rootDir) : options.legacyNestedRootDir |
| 120 | const docPath = (id: string) => path.join(rootDir, sanitizeId(id)) |
| 121 | const legacyDocPath = (id: string) => legacyNestedRootDir ? path.join(legacyNestedRootDir, sanitizeId(id)) : null |
| 122 | const ensureRoot = () => fs.mkdir(rootDir, { recursive: true }) |
| 123 |
no test coverage detected