Skip to content

Commit 5025040

Browse files
committed
refactor: . Specify return type explicitly
1 parent 7d38dcb commit 5025040

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Task/Link.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ export class Link {
1313
this.filenameContainingLink = filenameContainingLink;
1414
}
1515

16-
public get originalMarkdown() {
16+
public get originalMarkdown(): string {
1717
return this.rawLink.original;
1818
}
1919

20-
public get destination() {
20+
public get destination(): string {
2121
return this.rawLink.link;
2222
}
2323

@@ -27,7 +27,7 @@ export class Link {
2727
* No accommodation for empty links.
2828
* @returns {string}
2929
*/
30-
public get destinationFilename() {
30+
public get destinationFilename(): string {
3131
// Handle internal links (starting with '#')
3232
if (this.destination.startsWith('#')) {
3333
return this.filenameContainingLink;
@@ -41,7 +41,7 @@ export class Link {
4141
return destFilename.endsWith('.md') ? destFilename.slice(0, -3) : destFilename;
4242
}
4343

44-
public get displayText() {
44+
public get displayText(): string | undefined {
4545
return this.rawLink.displayText;
4646
}
4747
}

0 commit comments

Comments
 (0)