Skip to content

Commit 33c2bc6

Browse files
committed
fix: Somehow didn't save a file
1 parent 0d53915 commit 33c2bc6

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/lib/converter/factories/signature.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,12 @@ export function createSignature(
3333
| ts.SignatureDeclaration
3434
| undefined;
3535

36-
if (!commentDeclaration && declaration && (ts.isArrowFunction(declaration) || ts.isFunctionExpression(declaration)) {
36+
if (
37+
!commentDeclaration &&
38+
declaration &&
39+
(ts.isArrowFunction(declaration) ||
40+
ts.isFunctionExpression(declaration))
41+
) {
3742
commentDeclaration = declaration.parent;
3843
}
3944
commentDeclaration ??= declaration;

src/test/converter/function/specs.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@
294294
"flags": {},
295295
"comment": {
296296
"shortText": "Returns true if fn returns true for every item in the iterator",
297-
"text": "Returns true if the iterator is empty\n\n## Example\n```typescript\nall(e => e > 1, [1, 2, 3]) // false\nall(e => e > 0, [1, 2, 3]) // true\nall(e => e > 1, []) // true\n```\n"
297+
"text": "Returns true if the iterator is empty\n"
298298
},
299299
"typeParameter": [
300300
{
@@ -380,7 +380,7 @@
380380
"flags": {},
381381
"comment": {
382382
"shortText": "Returns true if fn returns true for every item in the iterator",
383-
"text": "Returns true if the iterator is empty\n\n## Example\n```typescript\nall(e => e > 1, [1, 2, 3]) // false\nall(e => e > 0, [1, 2, 3]) // true\nall(e => e > 1, []) // true\n```\n"
383+
"text": "Returns true if the iterator is empty\n"
384384
},
385385
"typeParameter": [
386386
{

0 commit comments

Comments
 (0)