Skip to content

Commit

Permalink
chore: fixup build
Browse files Browse the repository at this point in the history
  • Loading branch information
jquense committed Dec 28, 2021
1 parent 912e0be commit 61c3e87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/sortFields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { split } from 'property-expr';

import Ref from '../Reference';
import isSchema from './isSchema';
import { ObjectShape } from '../object';
import { ObjectShape } from './objectTypes';

export default function sortFields(
fields: ObjectShape,
Expand All @@ -28,7 +28,7 @@ export default function sortFields(

if (Ref.isRef(value) && value.isSibling) addNode(value.path, key);
else if (isSchema(value) && 'deps' in value)
value.deps.forEach((path) => addNode(path, key));
(value as any).deps.forEach((path: string) => addNode(path, key));
}

return toposort.array(Array.from(nodes), edges).reverse() as string[];
Expand Down

0 comments on commit 61c3e87

Please sign in to comment.