Skip to content

Commit

Permalink
export all wembat types
Browse files Browse the repository at this point in the history
  • Loading branch information
lmarschall committed Jan 23, 2025
1 parent c3b361e commit e5e729e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Roadmap.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

## Version 0.8.x
- public key endpoint
- import wembat message
- import wembat message (done)

## Version 0.9
- improve tests
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import { onboard } from "./functions/onboard";
import { jwtDecode } from "./helper";
import { token } from "./functions/token";

export * from "./types";

/**
* Represents a client for interacting with the Wembat API.
*/
Expand Down
2 changes: 1 addition & 1 deletion vue-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"format": "prettier . --write"
},
"dependencies": {
"@wembat/client": "^0.8.0",
"@wembat/client": "file:..",
"axios": "^1.4.0",
"bootstrap": "^5.3.2",
"vue": "^3.2.25",
Expand Down
5 changes: 2 additions & 3 deletions vue-example/src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,10 @@
import { useRouter } from "vue-router";
import { ref, onMounted, inject } from "vue";
import { WembatClient } from "@wembat/client";
import { WembatClient, WembatMessage, WembatRegisterResult } from "@wembat/client";
import TokenService from "../services/token";
import MessageService from "../services/message";
import { WembatMessage } from "@wembat/client/dist/types";
const loading = ref(false);
const router = useRouter();
Expand Down Expand Up @@ -137,7 +136,7 @@ async function register() {
const registerResponse = await wembatClient.register("blob");
if(registerResponse.success) {
const verified = registerResponse.result;
const verified: WembatRegisterResult = registerResponse.result;
appendAlert("Registration successful", "success");
} else {
const errorResult = registerResponse.error;
Expand Down

0 comments on commit e5e729e

Please sign in to comment.