From 0cffb09e249832291be73be039dc1b9bb38115f9 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Tue, 30 Apr 2019 21:50:46 +0900 Subject: Types on src/share --- src/shared/settings/properties.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/shared/settings/properties.ts') diff --git a/src/shared/settings/properties.ts b/src/shared/settings/properties.ts index f8e61a0..7d037df 100644 --- a/src/shared/settings/properties.ts +++ b/src/shared/settings/properties.ts @@ -2,20 +2,20 @@ // mystr: 'string', // mynum: 'number', // mybool: 'boolean', -const types = { +const types: { [key: string]: string } = { hintchars: 'string', smoothscroll: 'boolean', complete: 'string', }; // describe default values of a property -const defaults = { +const defaults: { [key: string]: string | number | boolean } = { hintchars: 'abcdefghijklmnopqrstuvwxyz', smoothscroll: false, complete: 'sbh', }; -const docs = { +const docs: { [key: string]: string } = { hintchars: 'hint characters on follow mode', smoothscroll: 'smooth scroll', complete: 'which are completed at the open page', -- cgit v1.2.3