Skip to content

Commit 7c6cdae

Browse files
committed
fix: lint fixing
1 parent a085808 commit 7c6cdae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const defaultOptions: TraverseOptions = {
3535
mutable: false,
3636
};
3737

38-
const isCycle = (s: JSONMetaSchema, recursiveStack: JSONMetaSchema[]) => {
38+
const isCycle = (s: JSONMetaSchema, recursiveStack: JSONMetaSchema[]): JSONMetaSchema | false => {
3939
const foundInRecursiveStack = recursiveStack.find((recSchema) => recSchema === s);
4040
if (foundInRecursiveStack) {
4141
return foundInRecursiveStack;
@@ -61,7 +61,7 @@ export default function traverse(
6161
depth = 0,
6262
recursiveStack: JSONMetaSchema[] = [],
6363
prePostMap: Array<[JSONMetaSchema, JSONMetaSchema]> = [],
64-
) {
64+
): JSONMetaSchema {
6565
let isRootOfCycle = false;
6666

6767
// booleans are a bit messed. Since all other schemas are objects (non-primitive type
@@ -85,7 +85,7 @@ export default function traverse(
8585

8686
prePostMap.push([schema, mutableSchema]);
8787

88-
const rec = (s: JSONMetaSchema) => {
88+
const rec = (s: JSONMetaSchema): JSONMetaSchema => {
8989
const foundCycle = isCycle(s, recursiveStack);
9090
if (foundCycle) {
9191
if (foundCycle === schema) { isRootOfCycle = true; }

0 commit comments

Comments
 (0)