diff --git a/keyserver/addons/rust-node-addon/index.js b/keyserver/addons/rust-node-addon/index.js --- a/keyserver/addons/rust-node-addon/index.js +++ b/keyserver/addons/rust-node-addon/index.js @@ -2,7 +2,7 @@ const { platform, arch } = process; -type RustAPI = { +type IdentityAPI = { +registerUser: ( userId: string, deviceId: string, @@ -12,7 +12,7 @@ ) => Promise, }; -async function getRustAPI(): Promise { +async function getIdentityRustAPI(): Promise { let nativeBinding = null; if (platform === 'darwin' && arch === 'x64') { // $FlowFixMe @@ -38,4 +38,4 @@ return { registerUser }; } -export { getRustAPI }; +export { getIdentityRustAPI };