We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d56737 commit 631342cCopy full SHA for 631342c
index.d.ts
@@ -0,0 +1,11 @@
1
+declare namespace JsonSchemaToOpenapiSchema {
2
+ interface Options {
3
+ cloneSchema?: boolean;
4
+ dereference?: boolean;
5
+ }
6
+}
7
+declare function JsonSchemaToOpenapiSchema<T = Record<string | number, any>>(
8
+ schema: Record<string | number, any>,
9
+ options?: JsonSchemaToOpenapiSchema.Options
10
+): T;
11
+export = JsonSchemaToOpenapiSchema;
package.json
@@ -3,6 +3,7 @@
"version": "0.0.0-development",
"description": "Converts a JSON Schema to OpenAPI Schema Object",
"main": "index.js",
+ "types": "index.d.ts",
"scripts": {
"test": "nyc --reporter=html --reporter=text mocha",
"coverage": "nyc report --reporter=text-lcov"
0 commit comments