-
Notifications
You must be signed in to change notification settings - Fork 18
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
Typescript error on optional type. #54
Comments
Related to #53 |
@MadsKK Are you using See this comment for more context #33 (comment) |
@samkim Okay, that seems to fix the problem. Thanks for the clarification :) |
No problem, glad that worked! |
A typescript error is generated when using the v1.SubjectFilter type for the SubjectFilter.
Property 'optionalSubjectId' is missing in type '{ subjectType: string; }' but required in type 'SubjectFilter'.ts(2741) permission_service.d.ts(115, 5): 'optionalSubjectId' is declared here.
The type in question that makes the issue is the optionalSubjectId, that is not optional according to the interface generated for v1.SubjectFilter.
There is a workaround by disabling semantic checks by using
// @ts-nocheck
at the beginning of the file. However this kind of defeats the purpose of using typescript.The text was updated successfully, but these errors were encountered: