Skip to content

Commit a9ae2de

Browse files
committed
remove unwanted variables
1 parent f47f65f commit a9ae2de

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/components/docs/API.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,10 +538,10 @@ Component for rendering query parameter variables code.
538538
```js
539539
import path from "path"
540540
import { Parser, fromFile } from "@asyncapi/parser";
541+
import { getQueryParams } from "@asyncapi/generator-helpers";
541542

542543
const parser = new Parser();
543544
const asyncapi_v3_path = path.resolve(__dirname, "../__fixtures__/asyncapi-v3.yml");
544-
let parsedAsyncAPIDocument;
545545

546546
// Parse the AsyncAPI document (async operation)
547547
const parseResult = await fromFile(parser, asyncapi_v3_path).parse();

packages/components/src/components/Models.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ import {
2020
*/
2121

2222
/**
23-
* @typedef {PythonGenerator | JavaGenerator | TypeScriptGenerator | CSharpGenerator | RustGenerator | JavaScriptGenerator} ModelinaGenerator
23+
* @typedef {PythonGenerator | JavaGenerator | TypeScriptGenerator | CSharpGenerator | RustGenerator | JavaScriptGenerator} ModelinaGeneratorClass
2424
* Represents any Modelina generator instance.
2525
*/
2626

2727
/**
2828
* Mapping of language strings to Modelina generator classes and file extensions.
29-
* @type {Record<string, { generator: ModelinaGenerator, extension: string }>}
29+
* @type {Record<string, { generator: ModelinaGeneratorClass, extension: string }>}
3030
*/
3131
const generatorConfig = {
3232
python: { generator: PythonGenerator, extension: 'py' },

packages/components/src/components/QueryParamsVariables.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,10 @@ function resolveQueryParamLogic(language, framework = '') {
117117
* @example
118118
* import path from "path"
119119
* import { Parser, fromFile } from "@asyncapi/parser";
120+
* import { getQueryParams } from "@asyncapi/generator-helpers";
120121
*
121122
* const parser = new Parser();
122123
* const asyncapi_v3_path = path.resolve(__dirname, "../__fixtures__/asyncapi-v3.yml");
123-
* let parsedAsyncAPIDocument;
124124
*
125125
* // Parse the AsyncAPI document (async operation)
126126
* const parseResult = await fromFile(parser, asyncapi_v3_path).parse();

0 commit comments

Comments
 (0)