You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Couldn't get correct types when i wrote own directive handler.
If i extend from SchemaDirectiveVisitor class MyDirective extends SchemaDirectiveVisitor
this.args is always resolved by typescript as {[name: string]: any;}
Suggestion
Rewrite SchemaDirectiveVisitor as Generic to provide args, context and schema types for inherited classes
The text was updated successfully, but these errors were encountered:
Issue
Couldn't get correct types when i wrote own directive handler.
If i extend from SchemaDirectiveVisitor
class MyDirective extends SchemaDirectiveVisitor
this.args is always resolved by typescript as {[name: string]: any;}
Suggestion
Rewrite SchemaDirectiveVisitor as Generic to provide args, context and schema types for inherited classes
The text was updated successfully, but these errors were encountered: