Skip to content

Commit

Permalink
fix: emoji ts errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bbb169 committed Oct 22, 2023
1 parent f84bba8 commit d02b0ec
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/playRoom/component/playerBox/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default function PlayerBox ({ player } : { player: PlayerInfoType }) {
<div>已下注: {player.calledChips}</div>
<div>已负债: {player.debt}</div>
{isBarking && <div>正在狗叫...</div>}
{<div>点击表情可互动</div>}
<div>点击表情可互动</div>
</div>
<div css={css`
display: flex;
Expand Down
9 changes: 9 additions & 0 deletions src/pages/playRoom/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ export type CardColor = 'diamonds' | 'hearts' | 'spades' | 'clubs';
export type CardStatu = 'undistributed' | 'distributed' | 'determineVictory';
export type CardShowFace = 'front' | 'back';

declare global {
// eslint-disable-next-line @typescript-eslint/no-namespace
namespace JSX {
interface IntrinsicElements {
'em-emoji': any;
}
}
}

export interface CardType {
key: string;
color: 'diamonds' | 'hearts' | 'spades' | 'clubs';
Expand Down

0 comments on commit d02b0ec

Please sign in to comment.