-
Notifications
You must be signed in to change notification settings - Fork 132
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
window.fdc3 should be marked as optional #1385
Comments
I realise that this is probably going to be an issue as anyone relying on this type being defined will now get a breaking change as it might not be defined. My proposal is IMHO the "right" thing to do but I understand that there will likely be issues and push back. |
HI @Roaders - this is very good point that we haven't discussed in a long time. If you have a moment, please feel free to raise that PR (which you can do at https://github.com/finos/FDC3/edit/fdc3-for-web/src/index.ts) and we'll check with others at the meeting on Thursday and SWG meeting the week after (as its a change to what was voted on). |
P.S. PR must include a CHANGELOG.md entry describing that change. |
Great! pr raised. |
Enhancement Request
Use Case:
I want to test to see if
window.fdc3
is definedFor example:
In writing and testing a
getAgent
implementation it's important to see if an agent has already been created and assigned towindow.fdc3
. Currently the typing specified it as beingDesktopAgent
:This however should be marked as optional so any code accessing that property check to see if it's defined first:
The text was updated successfully, but these errors were encountered: