@blockassetlabs/minter
Version:
Blockasset Minter
17 lines (14 loc) • 360 B
text/typescript
import type { PublicKey } from "@solana/web3.js";
/**
* Generic type that defines the return type for a function
*/
export type AccountFn<T> = () => Promise<AccountData<T>>;
/**
* Generic AccountData type
* @param pubkey account public key
* @param parsed parsed data from account
*/
export type AccountData<T> = {
pubkey: PublicKey;
parsed: T;
};