해결된 질문
작성
·
161
0
import { Equal, Expect } from "./helper";
export const fakeDataDefaults = {
foo: "bar",
bar: 123,
baz: true,
};
type objType = typeof fakeDataDefaults;
export type FooType = objType["foo"];
export type BarType = objType["bar"];
export type BazType = objType["baz"];
type tests = [
Expect<Equal<FooType, string>>,
Expect<Equal<BarType, number>>,
Expect<Equal<BazType, boolean>>
];