Some fixes and refactors

This commit is contained in:
syuilo 2018-04-01 21:24:25 +09:00
parent 623f5b0072
commit 79f87b6943
7 changed files with 21 additions and 20 deletions

View file

@ -5,12 +5,12 @@ const webFinger = new WebFinger({});
type ILink = {
href: string;
rel: string;
}
};
type IWebFinger = {
links: Array<ILink>;
links: ILink[];
subject: string;
}
};
export default (query, verifier): Promise<IWebFinger> => new Promise((res, rej) => webFinger.lookup(query, (error, result) => {
if (error) {