diff --git a/.changeset/bounty-program-2026-04-misc-fixes.md b/.changeset/bounty-program-2026-04-misc-fixes.md new file mode 100644 index 000000000..2aa698936 --- /dev/null +++ b/.changeset/bounty-program-2026-04-misc-fixes.md @@ -0,0 +1,5 @@ +--- +"@asyncapi/cli": patch +--- + +fix: remove unused retrieveLanguage function, add gleam-template type declaration diff --git a/src/domains/services/module.d.ts b/src/domains/services/module.d.ts index cfa82f548..bbc7db3a3 100644 --- a/src/domains/services/module.d.ts +++ b/src/domains/services/module.d.ts @@ -1 +1,2 @@ declare module '@asyncapi/generator'; +declare module '@asyncapi/gleam-template'; diff --git a/src/utils/retrieve-language.ts b/src/utils/retrieve-language.ts index 641bba7db..8b1378917 100644 --- a/src/utils/retrieve-language.ts +++ b/src/utils/retrieve-language.ts @@ -1,6 +1 @@ -export function retrieveLangauge(content: string): 'json' | 'yaml' { - if (content.trim()[0] === '{') { - return 'json'; - } - return 'yaml'; -} +