remove usage of @ts-ignore
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -78,8 +78,7 @@ describe('ReadUrlResponseFactory', () => {
|
||||
let readable: NodeJS.ReadableStream;
|
||||
|
||||
beforeEach(() => {
|
||||
// @ts-ignore
|
||||
readable = new Stream({ encoding: 'utf-8' });
|
||||
readable = new Stream({ encoding: 'utf-8' }) as NodeJS.ReadableStream;
|
||||
readable.readable = true;
|
||||
|
||||
// Write data asynchronously, as soon as possible.
|
||||
|
||||
@@ -23,8 +23,7 @@ describe('createValidator', () => {
|
||||
const validators: Record<string, undefined | CustomFieldValidator<unknown>> =
|
||||
{
|
||||
CustomPicker: (value, validation, _context) => {
|
||||
// @ts-ignore
|
||||
if (!value || !value.value) {
|
||||
if (!value || !(value as { value?: unknown }).value) {
|
||||
validation.addError('Error !');
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user