UNPKG

openapi-ts-json-schema

Version:

Generate TypeScript-first JSON schemas from OpenAPI definitions

11 lines (10 loc) 400 B
import type { ModuleSystem } from '../types.js'; /** * Evaluate the relative import path from a directory to a module * Accepts posix and win32 absolute urls and returns a relative import path ("./foo/bar") */ export declare function makeRelativeImportPath({ fromDirectory, toModule, moduleSystem, }: { fromDirectory: string; toModule: string; moduleSystem?: ModuleSystem; }): string;