You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							27 lines
						
					
					
						
							555 B
						
					
					
				
			
		
		
	
	
							27 lines
						
					
					
						
							555 B
						
					
					
				| /**
 | |
|  * Mnemonist Trie Typings
 | |
|  * =======================
 | |
|  */
 | |
| export default class Trie<T> implements Iterable<T> {
 | |
| 
 | |
|   // Members
 | |
|   size: number;
 | |
| 
 | |
|   // Constructor
 | |
|   constructor(Token?: new () => T);
 | |
| 
 | |
|   // Methods
 | |
|   clear(): void;
 | |
|   add(prefix: T): this;
 | |
|   delete(prefix: T): boolean;
 | |
|   has(prefix: T): boolean;
 | |
|   find(prefix: T): Array<T>;
 | |
|   prefixes(): IterableIterator<T>;
 | |
|   keys(): IterableIterator<T>;
 | |
|   [Symbol.iterator](): IterableIterator<T>;
 | |
|   inspect(): any;
 | |
| 
 | |
|   // Statics
 | |
|   static from<I>(iterable: Iterable<I> | {[key: string]: I}): Trie<I>;
 | |
| }
 |