Skip to content

Commit

Permalink
test: repro #10605
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Sep 1, 2021
1 parent e94d603 commit 1a1a2f2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/typescript/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,4 +187,14 @@ function gh10605() {
}
}
});
}

function gh10605_2() {
interface ITestSchema extends Document {
someObject: Array<{id: string}>
}

const testSchema = new Schema<ITestSchema>({
someObject: { type: [{ id: String }] }
});
}

0 comments on commit 1a1a2f2

Please sign in to comment.