Skip to content

Commit

Permalink
Expose Push module to typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
singpolyma committed Oct 12, 2024
1 parent 2875e25 commit 9763b95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ npm/snikket.js:
sed -i 's/snikket\.MessageStatus/enums.MessageStatus/g' npm/snikket.d.ts
sed -i 's/snikket\.MessageDirection/enums.MessageDirection/g' npm/snikket.d.ts
sed -i 's/snikket\.UserState/enums.UserState/g' npm/snikket.d.ts
sed -i 's/_Push.Push_Fields_/Push/g' npm/snikket.d.ts
sed -i '1ivar exports = {};' npm/snikket.js
echo "export const snikket = exports.snikket;" >> npm/snikket.js

Expand Down
1 change: 1 addition & 0 deletions npm/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export import Identicon = snikket.Identicon;
export import Identity = snikket.Identity;
export import Notification = snikket.Notification;
export import Participant = snikket.Participant;
export import Push = snikket.Push;
export import SerializedChat = snikket.SerializedChat;
export import jingle = snikket.jingle;

Expand Down

0 comments on commit 9763b95

Please sign in to comment.