@myria/leaderboard-ts-sdk
Version:
Myria Leaderboard typescripts SDK which will manage leaderboard for game developers
12 lines (11 loc) • 310 B
TypeScript
/**
* @description Generic type for response on Myria services
* @typedef {Object} APIResponseType
* @property {string} status Status response from Myria's API (success/failed)
* @property {T} data Generic data
*/
export interface APIResponseType<T> {
status: string;
data: T;
errors?: any;
}