Skip to content

Commit

Permalink
fix: fix import statement (#908)
Browse files Browse the repository at this point in the history
  • Loading branch information
KhudaDad414 authored Nov 20, 2023
1 parent 8be6975 commit 0ad2ec8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/models/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import type { DetailedAsyncAPI } from '../types';
import { SchemaInterface } from './schema';
import { SchemaTypesToIterate, traverseAsyncApiDocument } from '../iterator';
import { AsyncAPIDocumentInterface } from './asyncapi';
import { SchemasInterface } from 'models';
import { SchemasInterface } from '../models';

export interface Constructor<T> extends Function {
new (...any: any[]): T;
new(...any: any[]): T;
}

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

function callback(schema: SchemaInterface) {
// comparing the reference (and not just the value) to the .json() object
if (!jsonInstances.has(schema.json())) {
if (!jsonInstances.has(schema.json())) {
jsonInstances.add(schema.json());
schemas.add(schema); // unique schemas
}
Expand Down

0 comments on commit 0ad2ec8

Please sign in to comment.