diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-05-24 20:50:17 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-05-24 20:50:17 +0900 |
| commit | caeba1197c4b66e10614ffbddce0a2e98b0b5ef3 (patch) | |
| tree | 929fbbcc92b9e24baa203fdb2e025f9e3e7e94f0 /src/config.ts | |
| parent | Use tabs in json (diff) | |
| download | sharkey-caeba1197c4b66e10614ffbddce0a2e98b0b5ef3.tar.gz sharkey-caeba1197c4b66e10614ffbddce0a2e98b0b5ef3.tar.bz2 sharkey-caeba1197c4b66e10614ffbddce0a2e98b0b5ef3.zip | |
Refactoring
Diffstat (limited to 'src/config.ts')
| -rw-r--r-- | src/config.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/config.ts b/src/config.ts index f7b0095ee7..ca940420e8 100644 --- a/src/config.ts +++ b/src/config.ts @@ -22,7 +22,7 @@ export const path = process.env.NODE_ENV == 'test' /** * ユーザーが設定する必要のある情報 */ -interface Source { +type Source = { maintainer: string; url: string; secondary_url: string; @@ -68,12 +68,12 @@ interface Source { hook_secret: string; username: string; }; -} +}; /** * Misskeyが自動的に(ユーザーが設定した情報から推論して)設定する情報 */ -interface Mixin { +type Mixin = { host: string; scheme: string; secondary_host: string; @@ -83,7 +83,7 @@ interface Mixin { about_url: string; dev_url: string; drive_url: string; -} +}; export type Config = Source & Mixin; |