MCPcopy Create free account
hub / github.com/EvilFreelancer/openapi-to-cli / FileSystemForLoader

Interface FileSystemForLoader

src/openapi-loader.ts:8–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6import { Profile } from "./profile-store";
7
8interface FileSystemForLoader {
9 existsSync(pathToCheck: string): boolean;
10 readFileSync(pathToRead: string, encoding: BufferEncoding): string;
11 writeFileSync(pathToWrite: string, data: string): void;
12 mkdirSync(pathToCreate: string, options?: { recursive?: boolean }): void;
13}
14
15export interface OpenapiLoaderOptions {
16 fs?: FileSystemForLoader;

Callers 6

loadSpecMethod · 0.65
ensureCacheDirMethod · 0.65
loadSpecMethod · 0.65
loadFromSourceMethod · 0.65
loadSpecMethod · 0.65
ensureCacheDirMethod · 0.65

Implementers 1

MemoryFstests/profile-store.test.ts

Calls

no outgoing calls

Tested by

no test coverage detected