mirror of
https://github.com/Mastermindzh/react-starter-kit.git
synced 2025-08-23 09:35:01 +02:00
7 lines
215 B
TypeScript
7 lines
215 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),
|
|
);
|
|
}
|