RPC-core createType swap (#3786)

* RPC-core createType swap

* CHANGELOG

* createType complexity
This commit is contained in:
Jaco
2021-07-21 11:36:10 +02:00
committed by GitHub
parent 9309e9f3a1
commit 0be1d46be9
7 changed files with 55 additions and 42 deletions
+5 -2
View File
@@ -9,5 +9,8 @@ export * from './imports';
export * from './initMeta';
export * from './register';
export const compareName = (a: { name: { toString(): string } }, b: { name: { toString(): string } }): number =>
a.name.toString().localeCompare(b.name.toString());
type Cmp = { name: { toString(): string } };
export function compareName (a: Cmp, b: Cmp): number {
return a.name.toString().localeCompare(b.name.toString());
}