-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
How to import the API classes (noob) #22
Comments
Thanks for catching this, seems like those types arent exported. |
Thanks, so, how do I import, say, |
@foxt ? |
import { iCloudPhotoAsset } from "icloudjs/build/services/photos.js"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is probably a noob's question (I've been forced into TS just recently): if I'd like to operate on objects provided by the API, e.g.
getPhotos()
returningArray<iCloudPhotoAsset>
— and I seem to fail toimport { iCloudPhotoAsset } from ...
anywhere... I really have no idea if it's something I'm missing with TS, or the package might be missing something — the latter seems crazy to me, coming from all the other languages, but I'll appreciate an advice.The text was updated successfully, but these errors were encountered: