@@ -29,7 +29,7 @@ class LeetCodeManager extends EventEmitter implements ILeetCodeManager {
2929
3030public async getLoginStatus ( channel :vscode . OutputChannel ) :Promise < void > {
3131try {
32- const result = await executeCommand ( channel , "node" , [ leetCodeBinaryPath , "user" ] ) ;
32+ const result : string = await executeCommand ( channel , "node" , [ leetCodeBinaryPath , "user" ] ) ;
3333this . currentUser = result . slice ( "You are now login as" . length ) . trim ( ) ;
3434this . userStatus = UserStatus . SignedIn ;
3535} catch ( error ) {
@@ -60,7 +60,7 @@ class LeetCodeManager extends EventEmitter implements ILeetCodeManager {
6060childProc . on ( "error" , reject ) ;
6161const name :string | undefined = await vscode . window . showInputBox ( {
6262prompt :"Enter user name." ,
63- validateInput :( s :string ) => s && s . trim ( ) ?undefined :"User name must not be empty" ,
63+ validateInput :( s :string ) : string | undefined => s && s . trim ( ) ?undefined :"User name must not be empty" ,
6464} ) ;
6565if ( ! name ) {
6666childProc . kill ( ) ;
@@ -70,7 +70,7 @@ class LeetCodeManager extends EventEmitter implements ILeetCodeManager {
7070const pwd :string | undefined = await vscode . window . showInputBox ( {
7171prompt :"Enter password." ,
7272password :true ,
73- validateInput :( s :string ) => s ?undefined :"Password must not be empty" ,
73+ validateInput :( s :string ) : string | undefined => s ?undefined :"Password must not be empty" ,
7474} ) ;
7575if ( ! pwd ) {
7676childProc . kill ( ) ;