diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-04-30 21:50:46 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-05-02 11:14:19 +0900 |
commit | 0cffb09e249832291be73be039dc1b9bb38115f9 (patch) | |
tree | 3b8783d7a8185ca1524d7b2f9231e43104121204 /src/shared/settings/properties.ts | |
parent | 2b8c37e57f1b55dcb562ccf9141ae29bac0e370a (diff) |
Types on src/share
Diffstat (limited to 'src/shared/settings/properties.ts')
-rw-r--r-- | src/shared/settings/properties.ts | 6 |
1 files changed, 3 insertions, 3 deletions
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', |