// prisma
export const GameTransactionType: {
bet: 'bet',
win: 'win',
betWin: 'betWin',
rollback: 'rollback',
promo: 'promo',
end: 'end'
};
export type GameTransactionType = (typeof GameTransactionType)[keyof typeof GameTransactionType]
// my code
const myType = type(`"${GameTransactionType.bet}"`) // "bet" is not assignable to type "'bet' is unresolvable "
// type(GameTransactionType.bet) - same
// prisma
export const GameTransactionType: {
bet: 'bet',
win: 'win',
betWin: 'betWin',
rollback: 'rollback',
promo: 'promo',
end: 'end'
};
export type GameTransactionType = (typeof GameTransactionType)[keyof typeof GameTransactionType]
// my code
const myType = type(`"${GameTransactionType.bet}"`) // "bet" is not assignable to type "'bet' is unresolvable "
// type(GameTransactionType.bet) - same