Skip to content

Commit

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

chore: wip

chore: wip

chore: wip

chore: wip

chore: wip

chore: wip

chore: wip

chore: wip

chore: wip

chore: wip

chore: wip

chore: wip

chore: wip
  • Loading branch information
chrisbbreuer committed Oct 22, 2024
1 parent fc45d68 commit 95ffea6
Show file tree
Hide file tree
Showing 3 changed files with 164 additions and 175 deletions.
12 changes: 11 additions & 1 deletion fixtures/input/example-0001.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const someObject = {
someBoolean: true,
someFalse: false,
someFunction: () => { console.log('hello world') },
someFunction2: () => {
anotherOne: () => {
// some comment
/* some other comment */
return some.object ?? 'default'
Expand All @@ -29,6 +29,16 @@ export const someObject = {
[1, 2, 3],
[4, 5, 6, 7, 8, 9, 10],
],
someOtherNestedArray: [
[
'some text',
2,
console.log,
() => console.log('hello world'),
helloWorld,
],
[4, 5, 6, 7, 8, 9, 10],
],
someComplexArray: [
[
{ key: 'value' },
Expand Down
34 changes: 8 additions & 26 deletions fixtures/output/example-0001.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,32 +13,14 @@ export declare const someObject: {
someBoolean: true;
someFalse: false;
someFunction: Function;
someFunction2: Function;
someArray: [1, 2, 3];
someNestedArray: [
[1, 2, 3],
[4, 5, 6, 7, 8, 9, 10]
];
someComplexArray: [
[{ key: 'value' }],
[{ key2: 'value2' }, 'test', 1000],
['some string', Function, Function]
];
someObject: { key: 'value' };
someNestedObject: {
key: {
nestedKey: 'value';
};
otherKey: {
nestedKey: Function;
nestedKey2: Function;
};
};
someNestedObjectArray: [
{ key: 'value' },
{ key2: 'value2' }
];
someOtherObject: unknown;
anotherOne: Function;
someArray: Array<any>;
someNestedArray: Array<any>;
someComplexArray: Array<any>;
someObject: Object;
someNestedObject: Object;
someNestedObjectArray: Array<any>;
someOtherObject: Object;
someInlineCall2: Function;
someInlineCall3: Function;
};
Expand Down
Loading

0 comments on commit 95ffea6

Please sign in to comment.