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

Added typescript definitions #14

Merged
merged 7 commits into from
Dec 23, 2020
Merged

Conversation

nathanlepori
Copy link
Contributor

All typing should be mostly correct. Uses module augmentation to add .guard member. Custom user model class can be augmented using empty interface like so:

interface User extends GuardUser {}
class User extends Model {
    ...
}

@pankajvaghela pankajvaghela linked an issue Oct 9, 2020 that may be closed by this pull request
@pankajvaghela
Copy link
Contributor

Thanks for the PR @nathanlepori . and sorry for such a late reply...

I will look into it as soon as possible. currently I'm bit busy with some school stuff so might take some time.

@nathanlepori
Copy link
Contributor Author

No problem take your time. Thanks for looking into this

@pankajvaghela pankajvaghela merged commit bdeacda into lotivo:master Dec 23, 2020
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

Successfully merging this pull request may close these issues.

Typescript typing
2 participants