File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments