Fix keytar types
Summary: The linter otherwise wants us to remove `awaits` which are in fact required. Reviewed By: lblasa Differential Revision: D48467534 fbshipit-source-id: 355aee4bc22098086600b85edf58c8ed077b8aaf
This commit is contained in:
committed by
Facebook GitHub Bot
parent
f6fcc1635f
commit
7dad33a626
@@ -13,9 +13,13 @@ import {UserNotSignedInError} from 'flipper-common';
|
|||||||
export const SERVICE_FLIPPER = 'flipper.oAuthToken';
|
export const SERVICE_FLIPPER = 'flipper.oAuthToken';
|
||||||
|
|
||||||
export type KeytarModule = {
|
export type KeytarModule = {
|
||||||
getPassword(service: string, username: string): string;
|
getPassword(service: string, username: string): Promise<string>;
|
||||||
deletePassword(service: string, username: string): void;
|
deletePassword(service: string, username: string): Promise<void>;
|
||||||
setPassword(service: string, username: string, password: string): void;
|
setPassword(
|
||||||
|
service: string,
|
||||||
|
username: string,
|
||||||
|
password: string,
|
||||||
|
): Promise<void>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export class KeytarManager {
|
export class KeytarManager {
|
||||||
|
|||||||
Reference in New Issue
Block a user