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

Implement Typescript and ESM, and add Parcel for builds #27

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ dist
.idea/
examples/*/*/package-lock.json
docs/styleguide
.parcel-cache
9 changes: 6 additions & 3 deletions plugins/yivi-client/index.js → plugins/yivi-client/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
const SessionClient = require('./session-client');
const StateClient = require('./state-client');
import SessionClient from './session-client';
import StateClient from './state-client';

module.exports = class YiviClient {
export default class YiviClient {
_stateClient: StateClient;
_sessionClient: SessionClient;

constructor(args) {
this._stateClient = new StateClient(args);
this._sessionClient = new SessionClient({
Expand Down
Loading