I am using an external library pg-mem which exposes LibAdapters and it has a method createTypeormConnection which accepts few arguments but of type any.
export interface LibAdapters {
createTypeormConnection(typeOrmConnection: any, queryLatency?: number): any;
}
I want to specify the exact type of these arguments as I am getting a lot of lint errors:
Unsafe return of an `any` typed value.eslint@typescript-eslint/no-unsafe-return
How can I specify the types of the arguments & return type of the method?