Skip to content

Commit

Permalink
Annotate empty objects in xplat
Browse files Browse the repository at this point in the history
Reviewed By: pieterv

Differential Revision: D40134090

fbshipit-source-id: 3dd0bdb41ed559d9f72f0ff35c14e5551789fcc0
  • Loading branch information
SamChou19815 authored and facebook-github-bot committed Oct 6, 2022
1 parent 79266cc commit c0f88aa
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -35,7 +35,7 @@ export function copyContextToObject<T>(ctx: ContextModule<T>): {
export function awaitProperties<T>(
obj: $ReadOnly<{[key: string]: Promise<T>}>,
): Promise<{[key: string]: T}> {
const result = {};
const result: {[string]: T} = {};
return Promise.all(
Object.keys(obj).map(key => {
return obj[key].then(value => (result[key] = value));
Expand Down

0 comments on commit c0f88aa

Please sign in to comment.