InterfaceTypes -> keyof InterfaceRegistry (#1928)

* InterfaceTypes -> keyof InterfaceRegistry

* Renames
This commit is contained in:
Jaco Greeff
2020-02-23 13:43:37 +01:00
committed by GitHub
parent a938cb545a
commit 869f9b7af9
33 changed files with 71 additions and 82 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ interface RpcParamOptions {
}
/** @internal */
export default function createParam (name: string, type: InterfaceTypes, { isOptional = false }: RpcParamOptions = { isOptional: false }): RpcParam {
export default function createParam (name: string, type: keyof InterfaceTypes, { isOptional = false }: RpcParamOptions = { isOptional: false }): RpcParam {
return {
isOptional,
name,