foxt / icloud.js

Library for accessing iCloud in Node.js

Home Page:https://npmjs.com/icloudjs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to import the API classes (noob)

costa opened this issue · comments

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() returning Array<iCloudPhotoAsset> — and I seem to fail to import { 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.

commented

Thanks for catching this, seems like those types arent exported.

commented

fixed in 4dc4ea1 / 1.5.1

Thanks, so, how do I import, say, iCloudPhotoAsset?

Thanks, so, how do I import, say, iCloudPhotoAsset?

@foxt ?

commented

@costa:

import { iCloudPhotoAsset } from "icloudjs/build/services/photos.js";