Skip to content

Commit 48f3e06

Browse files
committed
chore: add any to some Generic types
1 parent 86710e9 commit 48f3e06

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/composeWithMongoose.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export type TypeConverterResolversOpts = {
114114
pagination?: PaginationResolverOpts | false;
115115
};
116116

117-
export function composeWithMongoose<TSource, TContext>(
117+
export function composeWithMongoose<TSource = any, TContext = any>(
118118
model: Model<any>,
119119
opts: ComposeWithMongooseOpts<TContext> = {}
120120
): ObjectTypeComposer<TSource, TContext> {

src/composeWithMongooseDiscriminators.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { ComposeWithMongooseDiscriminatorsOpts, DiscriminatorTypeComposer } from
44

55
export * from './discriminators';
66

7-
export function composeWithMongooseDiscriminators<TSource, TContext>(
7+
export function composeWithMongooseDiscriminators<TSource = any, TContext = any>(
88
baseModel: Model<any>,
99
opts?: ComposeWithMongooseDiscriminatorsOpts<TContext>
1010
): DiscriminatorTypeComposer<TSource, TContext> {

src/resolvers/helpers/aliases.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ export function prepareAliases(model: Model<any>): AliasesMap | false {
1212
return false;
1313
}
1414

15+
// TODO: change by translateAliases()
16+
// @see https://github.com/Automattic/mongoose/issues/6427
1517
export function replaceAliases(
1618
data: Record<string, any>,
1719
aliases: AliasesMap | false

0 commit comments

Comments
 (0)