@open-rpc/schema-utils-js
Version:
<center> <span> <img alt="CircleCI branch" src="https://img.shields.io/circleci/project/github/open-rpc/schema-utils-js/master.svg"> <img src="https://codecov.io/gh/open-rpc/schema-utils-js/branch/master/graph/badge.svg" /> <img alt="npm" sr
11 lines (10 loc) • 542 B
TypeScript
import { OpenrpcDocument as OpenRPC } from "@open-rpc/meta-schema";
/**
* Applies extension specifications to an OpenRPC document by modifying the meta schema
* @param document - The OpenRPC document containing x-extensions
* @param metaSchema - The meta schema to extend
* @returns The modified meta schema with extensions applied
* @throws {Error} If the schema definition doesn't exist or if extension name conflicts
*/
declare function applyExtensionSpec(document: OpenRPC, metaSchema: any): any;
export default applyExtensionSpec;