typescript: Eradicate most any annotations.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2020-05-04 00:02:13 -07:00
parent e5ece8db9e
commit 34e2b3a3d0
20 changed files with 122 additions and 96 deletions

View File

@@ -28,7 +28,7 @@ let db: JsonDB;
reloadDB();
export function getConfigItem(key: string, defaultValue: any = null): any {
export function getConfigItem(key: string, defaultValue: unknown = null): any {
try {
db.reload();
} catch (error) {
@@ -68,7 +68,7 @@ export function isConfigItemExists(key: string): boolean {
return (value !== undefined);
}
export function setConfigItem(key: string, value: any, override? : boolean): void {
export function setConfigItem(key: string, value: unknown, override? : boolean): void {
if (EnterpriseUtil.configItemExists(key) && !override) {
// If item is in global config and we're not trying to override
return;