import * as steem from "steem"; export namespace VoteOperation { /** * This is an TS 1.6+ TypeGuard as described here: https://www.typescriptlang.org/docs/handbook/advanced-types.html */ export function isVoteOperation(obj: object): obj is steem.VoteOperation { return (obj).voter !== undefined && (obj).author !== undefined && (obj).permlink !== undefined && (obj).weight !== undefined; } }