mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-26 17:00:19 +01:00
fix lint
This commit is contained in:
parent
7fd5152f73
commit
9f4ad3c873
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ import { Packed } from '@/misc/schema';
|
|||
|
||||
// 辞書(interface or type)から{ type, body }ユニオンを定義
|
||||
// https://stackoverflow.com/questions/49311989/can-i-infer-the-type-of-a-value-using-extends-keyof-type
|
||||
type EventUnions<T extends object> = { [K in keyof T]: { type: K; body: T[K]; } }
|
||||
type EventUnions<T extends object> = { [K in keyof T]: { type: K; body: T[K]; } };
|
||||
type EventUnionFromDictionary<
|
||||
T extends object,
|
||||
U = EventUnions<T>
|
||||
|
|
Loading…
Reference in a new issue