objection-password
objection-password copied to clipboard
Typscript implementation
Hello, I would like to convert a project to typescript but implementing the package as mixin I get a
Property 'verifyPassword' does not exist on type 'User'
my User is as follow
@Password({
allowEmptyPassword: true
})
export default class User extends BaseModel {
uuid!: string;
email!: string;
password!: string;
admin!: boolean;
// ...
}
I am fairly new to typescript so maybe Iam doing something wrong ?
Thanks for any help!
@BjMrq unfortunately, I don't have any real TS experience and I didn't create the definitions. Were you able to get this figured out?
I submitted a pull request :) https://github.com/scoutforpets/objection-password/pull/35
Hello, Any news on the PR ?