objection-password icon indicating copy to clipboard operation
objection-password copied to clipboard

Typscript implementation

Open CoveMB opened this issue 5 years ago • 3 comments

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!

CoveMB avatar Jul 08 '20 12:07 CoveMB

@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?

jamesdixon avatar Sep 05 '20 20:09 jamesdixon

I submitted a pull request :) https://github.com/scoutforpets/objection-password/pull/35

CoveMB avatar Sep 19 '20 14:09 CoveMB

Hello, Any news on the PR ?

CoveMB avatar Sep 30 '20 01:09 CoveMB