@@ -3,7 +3,7 @@ import {fomanticQuery} from '../modules/fomantic/base.ts';
33
44const  { pageData}  =  window . config ; 
55
6- async  function  initInputCitationValue ( citationCopyApa ,  citationCopyBibtex )  { 
6+ async  function  initInputCitationValue ( citationCopyApa :  HTMLButtonElement ,  citationCopyBibtex :  HTMLButtonElement )  { 
77  const  [ { Cite,  plugins} ]  =  await  Promise . all ( [ 
88    import ( /* webpackChunkName: "citation-js-core" */ '@citation-js/core' ) , 
99    import ( /* webpackChunkName: "citation-js-formats" */ '@citation-js/plugin-software-formats' ) , 
@@ -27,9 +27,9 @@ export async function initCitationFileCopyContent() {
2727
2828  if  ( ! pageData . citationFileContent )  return ; 
2929
30-   const  citationCopyApa  =  document . querySelector ( '#citation-copy-apa' ) ; 
31-   const  citationCopyBibtex  =  document . querySelector ( '#citation-copy-bibtex' ) ; 
32-   const  inputContent  =  document . querySelector ( '#citation-copy-content' ) ; 
30+   const  citationCopyApa  =  document . querySelector < HTMLButtonElement > ( '#citation-copy-apa' ) ; 
31+   const  citationCopyBibtex  =  document . querySelector < HTMLButtonElement > ( '#citation-copy-bibtex' ) ; 
32+   const  inputContent  =  document . querySelector < HTMLInputElement > ( '#citation-copy-content' ) ; 
3333
3434  if  ( ( ! citationCopyApa  &&  ! citationCopyBibtex )  ||  ! inputContent )  return ; 
3535
@@ -41,7 +41,7 @@ export async function initCitationFileCopyContent() {
4141    citationCopyApa . classList . toggle ( 'primary' ,  ! isBibtex ) ; 
4242  } ; 
4343
44-   document . querySelector ( '#cite-repo-button' ) ?. addEventListener ( 'click' ,  async  ( e )  =>  { 
44+   document . querySelector ( '#cite-repo-button' ) ?. addEventListener ( 'click' ,  async  ( e :  MouseEvent   &   { target :  HTMLAnchorElement } )  =>  { 
4545    const  dropdownBtn  =  e . target . closest ( '.ui.dropdown.button' ) ; 
4646    dropdownBtn . classList . add ( 'is-loading' ) ; 
4747
0 commit comments