Skip to content
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

Re-export skygear-core classes in skygear module #460

Open
limouren opened this issue Aug 29, 2018 · 0 comments
Open

Re-export skygear-core classes in skygear module #460

limouren opened this issue Aug 29, 2018 · 0 comments

Comments

@limouren
Copy link
Contributor

Currently there is a list of classes accessible as attribute accessor from the default export of the skygear module:

import skygear from "skygear";

skygear.Query;
skygear.Role;
skygear.ACL;
skygear.Record;
skygear.UserRecord;
skygear.Sequence;
skygear.Asset;
skygear.Reference;
skygear.Geolocation;
skygear.Database;
skygear.Friend;
skygear.Follower;
skygear.Following;
skygear.Error;
skygear.ErrorCodes;
skygear.AuthContainer;
skygear.RelationContainer;
skygear.DatabaseContainer;
skygear.PubsubContainer;
skygear.PushContainer;

It would be good to be able to import these classes with the new es6 module syntax:

  import skygear, {
    Query,
    Role,
    ACL,
    Record,
    UserRecord,
    Sequence,
    Asset,
    Reference,
    Geolocation,
    Database,
    Friend,
    Follower,
    Following,
    SkygearError,
    ErrorCodes,
    AuthContainer,
    RelationContainer,
    DatabaseContainer,
    PubsubContainer,
    PushContainer
  } from "skygear";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant