Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
chore: wip

chore: wip
  • Loading branch information
chrisbbreuer committed Nov 1, 2024
1 parent 8fe72b0 commit 62f0bc9
Show file tree
Hide file tree
Showing 2 changed files with 173 additions and 218 deletions.
60 changes: 30 additions & 30 deletions fixtures/output/variable.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,52 +15,52 @@ export declare const someObject: {
Array<1 | 2 | 3> |
Array<4 | 5 | 6 | 7 | 8 | 9 | 10> |
'dummy value'
>;
>;
someNestedArray3: Array<
Array<1 | 2 | 3> |
Array<4 | 5 | 6 | 7 | 8 | 9 | 10> |
'dummy value' |
Array<11 | 12 | 13>
>;
>;
someOtherNestedArray: Array<
Array<'some text' | 2 | unknown | (() => void) | unknown> |
Array<4 | 5 | 6 | 7 | 8 | 9 | 10>
>;
>;
someComplexArray: Array<
Array<
{
key: 'value'
}
> |
{
key: 'value'
}
> |
Array<
{
key2: 'value2'
} |
'test' |
1000
> |
{
key2: 'value2'
} |
'test' |
1000
> |
Array<'some string' | unknown | unknown>
>;
>;
someObject: {
key: 'value'
};
};
someNestedObject: {
key: {
nestedKey: 'value'
nestedKey: 'value'
};
otherKey: {
nestedKey: unknown;
nestedKey2: () => void
nestedKey: unknown;
nestedKey2: () => void
}
};
};
someNestedObjectArray: Array<
{
key: 'value'
} |
key: 'value'
} |
{
key2: 'value2'
}
>;
key2: 'value2'
}
>;
someOtherObject: unknown;
someInlineCall2: unknown;
someInlineCall3: unknown
Expand All @@ -75,24 +75,24 @@ export declare const complexArrays: {
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]>;
mixedArrays: Array<
unknown |
unknown |
((...args: any[]) => unknown) |
((...args: any[]) => unknown)
>
>
};
export declare const complexObject: {
handlers: {
onSuccess: <T> (data: T) => Promise<void>;
onError: (error: Error & { code?: number }) => never
};
};
utils: {
formatters: {
date: (input: Date) => string;
currency: (amount: number, currency: string) => string
}
date: (input: Date) => string;
currency: (amount: number, currency: string) => string
}
}
};
Loading

0 comments on commit 62f0bc9

Please sign in to comment.