From 9593749188de6d5ef4fe5cc2fa3b61bc73ebddfe Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 30 Oct 2024 20:06:18 +0100 Subject: [PATCH] chore: wip --- fixtures/input/variable.ts | 12 ++++++------ fixtures/output/variable.d.ts | 3 ++- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/fixtures/input/variable.ts b/fixtures/input/variable.ts index b38bfa9..b21042f 100644 --- a/fixtures/input/variable.ts +++ b/fixtures/input/variable.ts @@ -126,12 +126,12 @@ export const complexArrays = { ['literal', 42, false] as const, ], // TODO: get this part to generate correctly - // mixedArrays: [ - // new Date(), - // Promise.resolve('async'), - // async () => 'result', - // function* generator() { yield 42 }, - // ] + mixedArrays: [ + new Date(), + Promise.resolve('async'), + async () => 'result', + function* generator() { yield 42 }, + ] } // TODO: Nested Object Types with Methods diff --git a/fixtures/output/variable.d.ts b/fixtures/output/variable.d.ts index 0d907d2..ad8240c 100644 --- a/fixtures/output/variable.d.ts +++ b/fixtures/output/variable.d.ts @@ -47,5 +47,6 @@ export declare const defaultHeaders: { declare const dtsConfig: DtsGenerationConfig; export declare const complexArrays: { matrix: Array>> | Array<'a' | 'b' | Array<'c' | 'd'>> | Array>>>; - tuples: Array + tuples: Array; + mixedArrays: Array unknown> };