UNPKG

@rxap/json-schema-to-typescript

Version:

Generate TypeScript interfaces from JSON Schema definitions. It allows you to programmatically create and manipulate TypeScript interface definitions based on JSON schema inputs. The package provides utilities to convert JSON schema to TypeScript interfac

14 lines 416 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.joinPath = joinPath; function joinPath(...fragments) { return fragments .filter(Boolean) .filter(fragment => !fragment.match(/^\/+$/)) .map(fragment => fragment .replace(/\/+$/, '') .replace(/^\/+/, '')) .join('/') .replace(/\/+$/, ''); } //# sourceMappingURL=join.js.map