mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 09:32:43 +00:00 
			
		
		
		
	 f21041861b
			
		
	
	
		f21041861b
		
	
	
	
	
		
			
			This is a very partial implementation, as some features (like 2 of the possible constructor types, iteration and the getAll method) are missing, and other's are not implemented due to the currently missing URL built-in.
		
			
				
	
	
		
			17 lines
		
	
	
	
		
			531 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
	
		
			531 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| interface URLSearchParams {
 | |
| 
 | |
|   // FIXME: the real type of init is (sequence<sequence<USVString>> or record<USVString, USVString> or USVString)
 | |
|   constructor(optional USVString init = "");
 | |
| 
 | |
|   undefined append(USVString name, USVString value);
 | |
|   undefined delete(USVString name);
 | |
|   USVString? get(USVString name);
 | |
|   // TODO: sequence<USVString> getAll(USVString name);
 | |
|   boolean has(USVString name);
 | |
|   undefined set(USVString name, USVString value);
 | |
| 
 | |
|   undefined sort();
 | |
| 
 | |
|   // TODO: iterable<USVString, USVString>;
 | |
|   stringifier;
 | |
| };
 |