samuelgozi/firebase-firestore-lite

How to access/use Transform?

Closed this issue · 6 comments

Hi,

Thank you for the great library!

How can I access the Transform class? I cannot find it in the exports, nor can I see any examples of how to use it in the documentation.

Thanks!

For future reference:

import Transform from "firebase-firestore-lite/dist/Transform"

Thanks.
I forgot to update the docs.

Edit: I'm leaving this open because I'm considering changing the structure little bit in order to allow easier/cleaner imports/exports of common types(like GeoPoint, and Transforms).

In version 1.0 the main export will change to:

import { Database, GeoPoint, Transform } from 'firebase-auth-lite';

Up until then I leave this open.

RC1 for version v1.0.0 was released. The changes mentioned in the above comment are live.
Please let me know if something doesn't work as expected, or if you have any suggestions.

In version 1.0 the main export will change to:

import { Database, GeoPoint, Transform } from 'firebase-auth-lite';

Up until then I leave this open.

Is the above right? shouldn't it be 'firebase-firestore-lite' instead of 'firebase-auth-lite'?
Anyway i can't import it either way in the new version

My mistake, you are right