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

IsInstance validator #62

Closed
isergey opened this issue Jan 20, 2017 · 2 comments
Closed

IsInstance validator #62

isergey opened this issue Jan 20, 2017 · 2 comments
Labels
type: feature Issues related to new features.

Comments

@isergey
Copy link

isergey commented Jan 20, 2017

Is exists like isInstanse validator for run time checking?

class Post {
  @IsInstance(User);
  user: User;
}

Thanks a lot!

@pleerock
Copy link
Contributor

no I think there i no. However its easy to implement, you can create a PR for small feature if you need it urgently

@NoNameProvided NoNameProvided added the type: feature Issues related to new features. label Jan 8, 2018
@NoNameProvided
Copy link
Member

Hi @isergey!

The @IsInstance decorator has been added and will be included in the next release.

@typestack typestack locked and limited conversation to collaborators Jul 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: feature Issues related to new features.
Development

No branches or pull requests

3 participants