Skip to content

Commit

Permalink
fix: TS errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Shurtu-gal committed Sep 26, 2023
1 parent 10c674f commit 0a1aebf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/studio/src/services/parser.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,17 @@ 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;

override async onInit() {
this.parser = new Parser({
schemaParsers: [
OpenAPISchemaParser(),
AvroSchemaParser(),
// Temporary fix for TS error
OpenAPISchemaParser() as SchemaParser<unknown, unknown>,
AvroSchemaParser() as SchemaParser<unknown, unknown>,
],
__unstable: {
resolver: {
Expand Down

0 comments on commit 0a1aebf

Please sign in to comment.