해결된 질문
작성
·
126
0
import { Equal, Expect } from "./helper";
export type Event =
| {
type: "click";
event: MouseEvent;
}
| {
type: "focus";
event: FocusEvent;
}
| {
type: "keydown";
event: KeyboardEvent;
};
type objType = Event["type"];
type EventType = objType;
type tests = [Expect<Equal<EventType, "click" | "focus" | "keydown">>];