mirror of
https://github.com/Mastermindzh/react-starter-kit.git
synced 2025-04-19 05:23:50 +02:00
5 lines
207 B
TypeScript
5 lines
207 B
TypeScript
// A mock function to mimic making an async request for data
|
|
export function fetchCount(amount = 1) {
|
|
return new Promise<{ data: number }>((resolve) => setTimeout(() => resolve({ data: amount }), 500));
|
|
}
|