mirror of
https://github.com/dralkh/spaceforge.git
synced 2026-07-22 06:45:03 +00:00
- Split styles.css into modular component files - Update UI components to use new modular CSS structure - Remove deprecated main.js file - Add sleep utility function - Enhance calendar and modal components - Update navigation controller and event handling
8 lines
No EOL
284 B
TypeScript
8 lines
No EOL
284 B
TypeScript
/**
|
|
* Utility function for sleeping/delaying execution
|
|
* @param ms Number of milliseconds to sleep
|
|
* @returns Promise that resolves after the specified delay
|
|
*/
|
|
export function sleep(ms: number): Promise<void> {
|
|
return new Promise(resolve => window.setTimeout(resolve, ms));
|
|
} |