Skip to content

Commit

Permalink
Merge pull request #3 from hckrnews/feature/first-draft
Browse files Browse the repository at this point in the history
Finetune types
  • Loading branch information
w3nl authored Nov 21, 2023
2 parents ee7cce8 + 88e1a8a commit 81d3e46
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@hckrnews/openapi-model",
"description": "OpenAPI Model",
"version": "0.1.1",
"version": "0.1.2",
"author": {
"name": "Pieter Wigboldus",
"url": "https://hckr.news/"
Expand Down
2 changes: 1 addition & 1 deletion src/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const createBaseObjectFromSchema = (schema) => Object.fromEntries(

/**
* @param {BaseSchemaObject} schema
* @param {Options} options
* @param {Options=} options
* @returns {any}
*/
const openapiToModel = (schema, options = {}) => {
Expand Down
2 changes: 1 addition & 1 deletion src/schema.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ export class Model {
}
export function openapiToModel(
schema: BaseSchemaObject,
options: Options
options?: Options
): Model;

0 comments on commit 81d3e46

Please sign in to comment.