From 0a1aebffccd8e3868ebe24d2da93913b1d549446 Mon Sep 17 00:00:00 2001 From: Ashish Padhy <100484401+Shurtu-gal@users.noreply.github.com> Date: Tue, 26 Sep 2023 19:46:13 +0530 Subject: [PATCH] fix: TS errors --- apps/studio/src/services/parser.service.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/studio/src/services/parser.service.ts b/apps/studio/src/services/parser.service.ts index 0fd3a5650..fc01d535b 100644 --- a/apps/studio/src/services/parser.service.ts +++ b/apps/studio/src/services/parser.service.ts @@ -10,6 +10,7 @@ import { filesState, documentsState, settingsState } from '../state'; import type { Diagnostic, ParseOptions } from '@asyncapi/parser/cjs'; import type { DocumentDiagnostics } from '../state/documents.state'; +import { SchemaParser } from '@asyncapi/parser'; export class ParserService extends AbstractService { private parser!: Parser; @@ -17,8 +18,9 @@ export class ParserService extends AbstractService { override async onInit() { this.parser = new Parser({ schemaParsers: [ - OpenAPISchemaParser(), - AvroSchemaParser(), + // Temporary fix for TS error + OpenAPISchemaParser() as SchemaParser, + AvroSchemaParser() as SchemaParser, ], __unstable: { resolver: {