mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-02-09 13:35:09 -05:00
* Update TS version and setup SourceCred API in backend * Fix typeError in Player.tsx * Update yarn.lock * Update yarn.lock and fix type errors
12 lines
283 B
TypeScript
12 lines
283 B
TypeScript
export function isFulfilled<T>(
|
|
item: PromiseSettledResult<T>,
|
|
): item is PromiseFulfilledResult<T> {
|
|
return item.status === 'fulfilled';
|
|
}
|
|
|
|
export function isRejected<T>(
|
|
item: PromiseSettledResult<T>,
|
|
): item is PromiseRejectedResult {
|
|
return item.status === 'rejected';
|
|
}
|