noname/node_modules/noname-typings/Card.d.ts

23 lines
498 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

declare type CardBaseUIData = {
name?: string;
suit?: string;
number?: number;
nature?: string | null;
//用于某些方法,用于过滤卡牌的额外结构
type?: string | string[];
subtype?: string;
color?: string;
/**
* 是否时视为牌
*
* 是本来的卡牌则为true,作为视为牌则为false/undefined
* 在useCard使用时作为视为牌会把next.cards,设置为card.cards;
*
*/
isCard?: boolean;
/** 真实使用的卡牌 */
cards?: Card[];
}