Skip to content

Commit

Permalink
chore: export types (#330)
Browse files Browse the repository at this point in the history
  • Loading branch information
ditoglez authored Oct 24, 2024
1 parent e5d79c9 commit f6e6f02
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/idos-sdk-js/src/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ export * from "./enclave-providers";
export * from "./utils";
export * from "./types";
export * from "./grants";

// export types.
export * from "../../../types";
4 changes: 3 additions & 1 deletion packages/issuer-sdk-js/src/human.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,12 @@ async function upsertWallet(
return payload;
}

export interface CreateWalletReqParams extends Omit<UpsertWalletReqParams, "human_id"> {}

export async function createHuman(
config: IssuerConfig,
human: CreateProfileReqParams,
wallet: Omit<UpsertWalletReqParams, "human_id">,
wallet: CreateWalletReqParams,
) {
const human_id = human.id ?? crypto.randomUUID();
const wallet_id = wallet.id ?? crypto.randomUUID();
Expand Down
3 changes: 3 additions & 0 deletions packages/issuer-sdk-js/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
export * from "./create-issuer-config";
export * from "./credentials";
export * from "./human";

// export types.
export * from "../../types";

0 comments on commit f6e6f02

Please sign in to comment.