export type Fee = { scheme: number; total: number } export namespace Fee { export function is(value: any | Fee): value is Fee { return typeof value == "object" && typeof value.scheme == "number" && typeof value.total == "number" } }