Skip to content

Commit

Permalink
Merge pull request #13737 from Automattic/vkarpov15/gh-13710
Browse files Browse the repository at this point in the history
types: export InferSchemaType
  • Loading branch information
vkarpov15 authored Aug 15, 2023
2 parents e2057e8 + 4c5a3f3 commit 75479a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/inferschematype.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ declare module 'mongoose' {
* // result
* type UserType = {userName?: string}
*/
type InferSchemaType<TSchema> = IfAny<TSchema, any, ObtainSchemaGeneric<TSchema, 'DocType'>>;
export type InferSchemaType<TSchema> = IfAny<TSchema, any, ObtainSchemaGeneric<TSchema, 'DocType'>>;

Check warning on line 42 in types/inferschematype.d.ts

View workflow job for this annotation

GitHub Actions / Lint TS-Files

Expected indentation of 3 spaces but found 2

/**
* @summary Obtains schema Generic type by using generic alias.
Expand Down

0 comments on commit 75479a4

Please sign in to comment.