We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Consider,
/** * @typedef {object} App * @property {(obj: any) => Promise<unknown>} upcall return value depends on the * bridge semantics */ export const AppI = M.interface('App', { upcall: M.call(M.any()).returns(M.promise()), }); // contrived /** @typedef {(target: string, app: ERef<App>) => Promise<TargetUnregister>} registerApp */
The guards define the interface, but:
So a type has to be specified for App, but AppI doesn't get an annotation so:
App
AppI
#6160 is to solve this generally but a stop-gap could be:
/** * @typedef {object} App * @property {(obj: any) => Promise<unknown>} upcall return value depends on the * bridge semantics */ /** @type {GuardInterface<App>} */ export const AppI = M.interface('App', { upcall: M.call(M.any()).returns(M.promise()), });
See also,
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What is the Problem Being Solved?
Consider,
The guards define the interface, but:
So a type has to be specified for
App
, butAppI
doesn't get an annotation so:Description of the Design
#6160 is to solve this generally but a stop-gap could be:
See also,
Security Considerations
Scaling Considerations
Test Plan
Upgrade Considerations
The text was updated successfully, but these errors were encountered: