return reset value
This commit is contained in:
		
							parent
							
								
									cb6d38713f
								
							
						
					
					
						commit
						5bf637b978
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -177,6 +177,7 @@ export class Storage<T extends StateDef> {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	public reset(key: keyof T) {
 | 
						public reset(key: keyof T) {
 | 
				
			||||||
		this.set(key, this.def[key].default);
 | 
							this.set(key, this.def[key].default);
 | 
				
			||||||
 | 
							return this.def[key].default;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/**
 | 
						/**
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue