Remove generic defaults form WasmResponse/WasmSuccess

This commit is contained in:
Simon Warta 2020-07-07 07:23:01 +02:00
parent 855ce0bb4a
commit acb140710c

View File

@ -56,12 +56,9 @@ describe("LcdClient", () => {
readonly builder?: string;
}
// Currently all wasm query responses return json-encoded strings...
// later deprecate this and use the specific types for result
// (assuming it is inlined, no second parse needed)
type WasmResponse<T = string> = WasmSuccess<T> | WasmError;
type WasmResponse<T> = WasmSuccess<T> | WasmError;
interface WasmSuccess<T = string> {
interface WasmSuccess<T> {
readonly height: string;
readonly result: T;
}