Config: Don't cast to unknow and rather give a gernic type
This commit is contained in:
		
							parent
							
								
									17773e9dbf
								
							
						
					
					
						commit
						e4e21b4fbc
					
				| @ -89,8 +89,8 @@ class Config<T extends Record<string, any> = Record<string, unknown>> extends St | ||||
| 		return this._get(key, defaultValue); | ||||
| 	} | ||||
| 
 | ||||
| 	public getAll(): unknown { | ||||
| 		return this.store as unknown; | ||||
| 	public getAll(): T { | ||||
| 		return this.store; | ||||
| 	} | ||||
| 
 | ||||
| 	private _has<Key extends keyof T>(key: Key | string): boolean { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Diego Magdaleno
						Diego Magdaleno