* refactor(comments): move script to files for LSP, treesitter, and the whole galore. Signed-off-by: Aaron Pham <contact@aarnphm.xyz> * fix(type): support removeEventListener with CustomEventMap Signed-off-by: Aaron Pham <contact@aarnphm.xyz> * fix: parse bool to string first Signed-off-by: Aaron Pham <contact@aarnphm.xyz> * chore: address comments and test on branch Signed-off-by: Aaron Pham <contact@aarnphm.xyz> * revert: remove comments section from main quartz pages Signed-off-by: Aaron Pham <contact@aarnphm.xyz> --------- Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
		
			
				
	
	
		
			18 lines
		
	
	
		
			558 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			558 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
export declare global {
 | 
						|
  interface Document {
 | 
						|
    addEventListener<K extends keyof CustomEventMap>(
 | 
						|
      type: K,
 | 
						|
      listener: (this: Document, ev: CustomEventMap[K]) => void,
 | 
						|
    ): void
 | 
						|
    removeEventListener<K extends keyof CustomEventMap>(
 | 
						|
      type: K,
 | 
						|
      listener: (this: Document, ev: CustomEventMap[K]) => void,
 | 
						|
    ): void
 | 
						|
    dispatchEvent<K extends keyof CustomEventMap>(ev: CustomEventMap[K] | UIEvent): void
 | 
						|
  }
 | 
						|
  interface Window {
 | 
						|
    spaNavigate(url: URL, isBack: boolean = false)
 | 
						|
    addCleanup(fn: (...args: any[]) => void)
 | 
						|
  }
 | 
						|
}
 |