From 02dbdc54c310be173550709a4ae43b885800c92d Mon Sep 17 00:00:00 2001 From: tamaina Date: Mon, 6 Sep 2021 13:08:51 +0900 Subject: [PATCH] fix lint --- src/misc/schema.ts | 4 ++-- src/misc/simple-schema.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/misc/schema.ts b/src/misc/schema.ts index f6fb128751..90d4c3b715 100644 --- a/src/misc/schema.ts +++ b/src/misc/schema.ts @@ -50,7 +50,7 @@ export const refs = { export interface Schema extends SimpleSchema { properties?: Obj; ref?: keyof typeof refs; -}; +} type NonUndefinedPropertyNames = { [K in keyof T]: T[K]['optional'] extends true ? never : K @@ -63,7 +63,7 @@ type UndefinedPropertyNames = { type OnlyRequired = Pick>; type OnlyOptional = Pick>; -export interface Obj extends SimpleObj { [key: string]: Schema }; +export interface Obj extends SimpleObj { [key: string]: Schema; } export type ObjType = { [P in keyof OnlyOptional]?: SchemaType } & diff --git a/src/misc/simple-schema.ts b/src/misc/simple-schema.ts index 83590edbf2..abbb348e24 100644 --- a/src/misc/simple-schema.ts +++ b/src/misc/simple-schema.ts @@ -10,6 +10,6 @@ export interface SimpleSchema { ref?: string; enum?: string[]; default?: boolean | null; -}; +} -export type SimpleObj = { [key: string]: SimpleSchema }; +export interface SimpleObj { [key: string]: SimpleSchema; }