Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typscript implementation #29

Open
CoveMB opened this issue Jul 8, 2020 · 3 comments
Open

Typscript implementation #29

CoveMB opened this issue Jul 8, 2020 · 3 comments

Comments

@CoveMB
Copy link

CoveMB commented Jul 8, 2020

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!

@jamesdixon
Copy link
Contributor

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

@CoveMB
Copy link
Author

CoveMB commented Sep 19, 2020

I submitted a pull request :)
#35

@CoveMB
Copy link
Author

CoveMB commented Sep 30, 2020

Hello, Any news on the PR ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants