kopia lustrzana https://github.com/elk-zone/elk
				
				
				
			
		
			
				
	
	
		
			18 wiersze
		
	
	
		
			678 B
		
	
	
	
		
			TypeScript
		
	
	
			
		
		
	
	
			18 wiersze
		
	
	
		
			678 B
		
	
	
	
		
			TypeScript
		
	
	
| declare module 'page-lifecycle/dist/lifecycle.mjs' {
 | |
|     type PageLifecycleState = 'active' | 'passive' | 'hidden' | 'frozen' | 'terminated'
 | |
| 
 | |
|     interface PageLifecycleEvent extends Event {
 | |
|         newState: PageLifecycleState
 | |
|         oldState: PageLifecycleState
 | |
|     }
 | |
|     interface PageLifecycle extends EventTarget {
 | |
|         get state(): PageLifecycleState
 | |
|         get pageWasDiscarded(): boolean
 | |
|         addUnsavedChanges: (id: Symbol | any) => void
 | |
|         removeUnsavedChanges: (id: Symbol | any) => void
 | |
|         addEventListener: (type: string, listener: (evt: PageLifecycleEvent) => void) => void
 | |
|     }
 | |
|     const lifecycle: PageLifecycle
 | |
|     export default lifecycle
 | |
| }
 |