diff --git a/src/@types/promise-any.d.ts b/src/@types/promise-any.d.ts new file mode 100644 index 000000000..97060b84b --- /dev/null +++ b/src/@types/promise-any.d.ts @@ -0,0 +1,7 @@ +declare module 'promise-any' { + function promiseAny(iterable: Iterable>): Promise; + + namespace promiseAny {} // Hack + + export = promiseAny; +} diff --git a/src/remote/activitypub/request.ts b/src/remote/activitypub/request.ts index 0ac64fc38..7e487f76e 100644 --- a/src/remote/activitypub/request.ts +++ b/src/remote/activitypub/request.ts @@ -4,7 +4,7 @@ import { URL } from 'url'; import * as debug from 'debug'; import * as crypto from 'crypto'; const { lookup } = require('lookup-dns-cache'); -const promiseAny = require('promise-any'); +import * as promiseAny from 'promise-any'; import config from '../../config'; import { ILocalUser } from '../../models/user';