Skip to content

Commit 3e4132a

Browse files
committed
test: add to known
1 parent 519aec4 commit 3e4132a

File tree

5 files changed

+26
-1
lines changed

5 files changed

+26
-1
lines changed

tests/fixtures/issue-100-unnamed-default-export/known-diff.patch

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,15 @@ Index: diff.patch
22
===================================================================
33
--- diff.patch
44
+++ diff.patch
5-
@@ -1,9 +1,9 @@
5+
@@ -1,9 +1,12 @@
66
// index.d.ts
77
/**
88
* @description @TODO
99
*/
1010
-declare function export_default<T extends object>(
11+
+/**
12+
+ * @description @TODO
13+
+ */
1114
+declare function export_default <T extends object>(
1215
object: T,
1316
initializationObject: {

tests/fixtures/issue-100-unnamed-default-export/snapshot.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
/**
55
* @description @TODO
66
*/
7+
/**
8+
* @description @TODO
9+
*/
710
declare function export_default <T extends object>(
811
object: T,
912
initializationObject: {
File renamed without changes.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Index: diff.patch
2+
===================================================================
3+
--- diff.patch
4+
+++ diff.patch
5+
@@ -1,8 +1,11 @@
6+
// index.d.ts
7+
/**
8+
* @description @TODO
9+
*/
10+
+/**
11+
+ * @description @TODO
12+
+ */
13+
declare function export_default<T extends object>(
14+
object: T,
15+
initializationObject: {
16+
[x in keyof T]: () => Promise<T[x]>;

tests/fixtures/unnamed-default-export-without-space/snapshot.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
/**
55
* @description @TODO
66
*/
7+
/**
8+
* @description @TODO
9+
*/
710
declare function export_default<T extends object>(
811
object: T,
912
initializationObject: {

0 commit comments

Comments
 (0)