Rewrite yarn.lock (#2127)

This commit is contained in:
Jaco Greeff
2020-04-01 23:49:56 +02:00
committed by GitHub
parent 1f97c5e9e3
commit 58de0b8b9c
37 changed files with 172 additions and 154 deletions
+1
View File
@@ -77,6 +77,7 @@ function injectFunctions<AllSections> (api: ApiInterfaceRx, allSections: AllSect
const methodName = _methodName as keyof typeof section;
// Not sure what to do here, casting as any. Though the final types are good
const method = (section[methodName] as any)(api);
// idem
(sectionAcc as any)[methodName] = method;
@@ -44,6 +44,7 @@ function parseActive (id: ParaId, active: Active): DeriveParachainActive | null
)
};
}
return null;
}
@@ -21,5 +21,6 @@ export function approvalFlagsToBools (flags: Vec<ApprovalFlag> | ApprovalFlag[])
// slice off trailing "false" values, as in substrate
const lastApproval: number = bools.lastIndexOf(true);
return lastApproval >= 0 ? bools.slice(0, lastApproval + 1) : [];
}