Skip to content

Conversation

@rmarscher
Copy link
Member

@rmarscher rmarscher commented Jun 21, 2023

I did a bunch of messing around with decorators. I haven't been able to get the context param to be anything but undefined when I run vitest. I tried removing the experimental decorator flags thinking they conflict with the new implementation. But I still couldn't get the context param to be populated.

I tried making a generic validate decorator for constructors or methods. It seems to work... but it probably calls new on the method thinking it's a class because context.kind is undefined.

@rmarscher rmarscher force-pushed the feat/decorators-pt2 branch from ff3742e to 6e28a89 Compare June 21, 2023 21:22
@jhubbardsf
Copy link
Member

I think @ValidateOptions was working as the validator for the constructor in my original commit in this branch. Not sure how but I think that worked fine (don't know why it wasn't working last night).

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.

3 participants