Skip to content

Commit 0ad2ec8

Browse files
authored
fix: fix import statement (#908)
1 parent 8be6975 commit 0ad2ec8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/models/utils.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import type { DetailedAsyncAPI } from '../types';
33
import { SchemaInterface } from './schema';
44
import { SchemaTypesToIterate, traverseAsyncApiDocument } from '../iterator';
55
import { AsyncAPIDocumentInterface } from './asyncapi';
6-
import { SchemasInterface } from 'models';
6+
import { SchemasInterface } from '../models';
77

88
export interface Constructor<T> extends Function {
9-
new (...any: any[]): T;
9+
new(...any: any[]): T;
1010
}
1111

1212
export type InferModelData<T> = T extends BaseModel<infer J> ? J : never;
@@ -23,7 +23,7 @@ export function schemasFromDocument<T extends SchemasInterface>(document: AsyncA
2323

2424
function callback(schema: SchemaInterface) {
2525
// comparing the reference (and not just the value) to the .json() object
26-
if (!jsonInstances.has(schema.json())) {
26+
if (!jsonInstances.has(schema.json())) {
2727
jsonInstances.add(schema.json());
2828
schemas.add(schema); // unique schemas
2929
}

0 commit comments

Comments
 (0)