@@ -27,7 +27,7 @@ const DEFAULT_SETTINGS: LatexMathPluginSettings = {
2727} ;
2828
2929export default class LatexMathPlugin extends Plugin {
30- settings : LatexMathPluginSettings ;
30+ settings ! : LatexMathPluginSettings ;
3131
3232 async onload ( ) {
3333 console . log ( `Loading LaTeX Math (v${ this . manifest . version } )` ) ;
@@ -109,12 +109,11 @@ export default class LatexMathPlugin extends Plugin {
109109 private static readonly STATUS_BAR_UPDATE_FREQ : UnixTimestampMillis = 500 ;
110110 private static readonly STATUS_BAR_MESSAGE_HANG_TIME : UnixTimestampMillis = 1000 ;
111111
112- private cas_server : CasServer ;
113- private spawn_cas_client_promise : Promise < void > ;
112+ private cas_server ! : CasServer ;
113+ private spawn_cas_client_promise ! : Promise < void > ;
114114 private prev_err_notice : Notice | null = null ;
115115
116116 private async setupCasConnection ( ) {
117- this . cas_server = new CasServer ( ) ;
118117 this . cas_server . onError ( this . handleCasError . bind ( this ) ) ;
119118
120119 this . spawn_cas_client_promise = this . spawnCasClient ( this . manifest . dir as string ) ;
@@ -169,7 +168,7 @@ export default class LatexMathPlugin extends Plugin {
169168 await this . cas_server . initializeAsync ( cas_client_spawner ) ;
170169 }
171170
172- private onCommandFailed ( failed_command : LatexMathCommand , unexpected_response : ClientResponse , expected_statuses : Set < string > ) {
171+ private onCommandFailed ( failed_command : unknown , unexpected_response : ClientResponse , expected_statuses : Set < string > ) {
173172 console . error ( "Command Failed!\nCommand:\t\t\t" ,
174173 failed_command ,
175174 "\nExpected value types:\t" ,
0 commit comments