Compare commits

..

2 Commits

Author SHA1 Message Date
Derrick Hammer 8431f5c9f8
fix: typo 2024-03-21 08:44:31 -04:00
Derrick Hammer a508347fb1
refactor: export AccountError 2024-03-20 16:16:26 -04:00
2 changed files with 6 additions and 5 deletions

View File

@ -298,13 +298,13 @@ export class AccountApi {
} }
public async updatePassword( public async updatePassword(
currentPasswprd: string, currentPassword: string,
newPassword: string, newPassword: string,
): Promise<boolean | AccountError> { ): Promise<boolean | AccountError> {
let ret: AxiosResponse<void>; let ret: AxiosResponse<void>;
try { try {
ret = await postApiAccountUpdatePassword( ret = await postApiAccountUpdatePassword(
{ current_password: currentPasswprd, new_password: newPassword }, { current_password: currentPassword, new_password: newPassword },
this.buildOptions(), this.buildOptions(),
); );
} catch (e) { } catch (e) {

View File

@ -1,3 +1,4 @@
export * from "./sdk.js"; export * from './sdk.js';
export * from "./account/generated/openapi.schemas.js"; export * from './account/generated/openapi.schemas.js';
export * from "./protocol/index.js"; export * from './protocol/index.js';
export { AccountError } from './account.js';