Skip to content

Commit

Permalink
fix: turning on the downlevelIteration TS option to fix iterator quirks
Browse files Browse the repository at this point in the history
  • Loading branch information
erunion committed Oct 28, 2021
1 parent 025572f commit 5e8d3db
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 36 deletions.
32 changes: 0 additions & 32 deletions __tests__/dist.test.js

This file was deleted.

4 changes: 2 additions & 2 deletions __tests__/index.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const Oas = require('../src');
const Oas = require('..');
const $RefParser = require('@apidevtools/json-schema-ref-parser');
const { Operation, Webhook, utils } = require('../src');
const { Operation, Webhook, utils } = require('..');

const swagger = require('@readme/oas-examples/2.0/json/petstore.json');
const petstore = require('@readme/oas-examples/3.0/json/petstore.json');
Expand Down
4 changes: 2 additions & 2 deletions __tests__/operation.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const Oas = require('../src');
const { Operation, Callback } = require('../src');
const Oas = require('..');
const { Operation, Callback } = require('..');
const petstore = require('@readme/oas-examples/3.0/json/petstore.json');
const callbackSchema = require('./__datasets__/callbacks.json');
const multipleSecurities = require('./__datasets__/multiple-securities.json');
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"baseUrl": "./src/",
"declaration": true,
"declarationDir": "./@types",
"downlevelIteration": true, // @todo remove this option when the entire library has been ported to TS
"esModuleInterop": true,
"lib": ["dom", "es2020"],
"noImplicitAny": true,
Expand Down

0 comments on commit 5e8d3db

Please sign in to comment.