WebAPI: Require options in getProfile

This commit is contained in:
Evan Hahn 2021-10-12 16:32:38 -05:00 committed by GitHub
parent 7dca544295
commit c9a49ecb4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -757,7 +757,7 @@ export type WebAPIType = {
getMyKeys: () => Promise<number>; getMyKeys: () => Promise<number>;
getProfile: ( getProfile: (
identifier: string, identifier: string,
options?: { options: {
profileKeyVersion?: string; profileKeyVersion?: string;
profileKeyCredentialRequest?: string; profileKeyCredentialRequest?: string;
} }
@ -1307,7 +1307,7 @@ export function initialize({
options: { options: {
profileKeyVersion?: string; profileKeyVersion?: string;
profileKeyCredentialRequest?: string; profileKeyCredentialRequest?: string;
} = {} }
) { ) {
const { profileKeyVersion, profileKeyCredentialRequest } = options; const { profileKeyVersion, profileKeyCredentialRequest } = options;