Skip to content

Commit

Permalink
added the types of document
Browse files Browse the repository at this point in the history
  • Loading branch information
Gmin2 committed Sep 18, 2024
1 parent d3fd9f5 commit 9d3c998
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/convert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function convert(input: string | AsyncAPIDocument, version: AsyncAPIConve

// add 1 to `fromVersion` because we convert from previous to next
fromVersion++;
let converted = document;
let converted = document as AsyncAPIDocument;
for (let i = fromVersion; i <= toVersion; i++) {
const v = conversionVersions[i] as AsyncAPIConvertVersion;
converted = asyncAPIconverters[v](converted, options);
Expand Down

0 comments on commit 9d3c998

Please sign in to comment.