ddnet
Version:
A typescript npm package for interacting with data from ddnet.org
34 lines (33 loc) • 748 B
TypeScript
import { Player } from './Player.js';
/**
* Represents a player's partner.
*/
export declare class Partner {
/**
* The name of this partner.
*/
name: string;
/**
* The url of this player on ddnet.org
*/
url: string;
/**
* The amount of finishes the player and this partner share.
*/
finishCount: number;
/**
* Construct a new {@link Partner} instance.
*/
constructor(data: {
name: string;
finishCount: number;
});
/**
* Returns a new {@link Player} object from the {@link name} of this partner.
*/
toPlayer(): Promise<Player>;
/**
* Returns the name and url of this player in markdown format.
*/
toString(): string;
}