Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Oct 30, 2024
1 parent bfee39d commit 9593749
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
12 changes: 6 additions & 6 deletions fixtures/input/variable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion fixtures/output/variable.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,6 @@ export declare const defaultHeaders: {
declare const dtsConfig: DtsGenerationConfig;
export declare const complexArrays: {
matrix: Array<Array<1 | 2 | Array<3 | 4 | Array<5 | 6>>> | Array<'a' | 'b' | Array<'c' | 'd'>> | Array<true | Array<false | Array<true>>>>;
tuples: Array<readonly [1, 'string', true] | readonly ['literal', 42, false]>
tuples: Array<readonly [1, 'string', true] | readonly ['literal', 42, false]>;
mixedArrays: Array<unknown | (...args: any[]) => unknown>
};

0 comments on commit 9593749

Please sign in to comment.