diff --git a/test.ts b/test.ts index 138f368bbb7dcfd004aca3b429fe63bc1bf95e09..3f2f159d16700d3067fcc6903d065f3f2305e941 100644 --- a/test.ts +++ b/test.ts @@ -1,3 +1,5 @@ -export function test() { - return { a: 1, b: [1, 2, 3] } +export function test(): JSONObject { + var res = { a: 1, b: [1, 2, 3] } + return res } +type JSONObject = Record