Skip to content

Commit

Permalink
ts-ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
zxbodya committed Jul 25, 2023
1 parent 3cdbeda commit 584b9e2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { RJSFSchema } from '@rjsf/utils';

import AJV8PrecompiledValidator from '../src/precompiledValidator';
import { Localizer, ValidatorFunctions } from '../src';
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore file might be not yet generated by test/harness/compileTestSchema.js
import * as superSchemaFns from './harness/superSchema';
import superSchema from './harness/superSchema.json';
import createPrecompiledValidator from '../src/createPrecompiledValidator';
Expand Down
1 change: 1 addition & 0 deletions packages/validator-ajv8/test/harness/compileTestSchema.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* Then add the two updated `superSchema.js` and `superSchemaOptions.js` files to your PR
*/

// @ts-ignore todo: update this to use sources directly
const compileSchemaValidators = require('../../dist/compileSchemaValidators').default;
const superSchema = require('./superSchema.json');

Expand Down
4 changes: 4 additions & 0 deletions packages/validator-ajv8/test/precompiledValidator.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ import {

import AJV8PrecompiledValidator from '../src/precompiledValidator';
import { Localizer, ValidatorFunctions } from '../src';
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore file might be not yet generated by test/harness/compileTestSchema.js
import * as superSchemaFns from './harness/superSchema';
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore file might be not yet generated by test/harness/compileTestSchema.js
import * as superSchemaOptionsFns from './harness/superSchemaOptions';
import superSchema from './harness/superSchema.json';

Expand Down

0 comments on commit 584b9e2

Please sign in to comment.