diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-02-08 23:52:14 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-02-08 23:52:14 +0900 |
| commit | 0aa6d848fa27a975bfe4a6dcc563ee38de41a367 (patch) | |
| tree | e96cefabcdf2febc9171e89489d5a78f62b0a6cf /src/config.ts | |
| parent | [Client] Implement #102 (diff) | |
| download | sharkey-0aa6d848fa27a975bfe4a6dcc563ee38de41a367.tar.gz sharkey-0aa6d848fa27a975bfe4a6dcc563ee38de41a367.tar.bz2 sharkey-0aa6d848fa27a975bfe4a6dcc563ee38de41a367.zip | |
Refactor: Clean up
Diffstat (limited to 'src/config.ts')
| -rw-r--r-- | src/config.ts | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/config.ts b/src/config.ts index 852a59d27a..54ed0826a4 100644 --- a/src/config.ts +++ b/src/config.ts @@ -23,7 +23,7 @@ export const path = (global as any).MISSKEY_CONFIG_PATH /** * ユーザーが設定する必要のある情報 */ -interface ISource { +interface Source { maintainer: string; url: string; secondary_url: string; @@ -83,12 +83,10 @@ interface Mixin { drive_url: string; } -export type IConfig = ISource & Mixin; - export default function load() { - const config = yaml.safeLoad(fs.readFileSync(path, 'utf-8')) as ISource; + const config = yaml.safeLoad(fs.readFileSync(path, 'utf-8')) as Source; - const mixin: Mixin = {} as Mixin; + const mixin = {} as Mixin; // Validate URLs if (!isUrl(config.url)) urlError(config.url); |