Skip to content

Commit

Permalink
style: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Nov 23, 2022
1 parent 0ee8893 commit 12706eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/types/schema.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -942,14 +942,14 @@ function gh12590() {
function gh12611() {
const reusableFields = {
description: { type: String, required: true },
skills: { type: [Schema.Types.ObjectId], ref: "Skill", default: [] }
skills: { type: [Schema.Types.ObjectId], ref: 'Skill', default: [] }
} as const;

const firstSchema = new Schema({
...reusableFields,
anotherField: String
});

type Props = InferSchemaType<typeof firstSchema>;
expectType<{
description: string;
Expand Down

0 comments on commit 12706eb

Please sign in to comment.