any chance of exporting the VerifyCallback and Options types? typescript isn't inferring the super class at all when used as part of a nestjs implementation...
import { Injectable } from "@nestjs/common";
import { PassportStrategy } from "@nestjs/passport";
import Strategy from "passport-magic-login";
@Injectable()
export class MagicLoginStrategy extends PassportStrategy(Strategy) {
constructor() {
super({...} as Options); // <-- would be nice to cast to the Option type here instead of digging through the type declarations
}
}
any chance of exporting the VerifyCallback and Options types? typescript isn't inferring the super class at all when used as part of a nestjs implementation...