瀏覽代碼

fix(plugin): types

charlie 4 年之前
父節點
當前提交
510e21f81d
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      libs/src/helpers.ts

+ 2 - 2
libs/src/helpers.ts

@@ -18,7 +18,7 @@ export const IS_DEV = process.env.NODE_ENV === 'development'
 
 let _appPathRoot
 
-export async function getAppPathRoot () {
+export async function getAppPathRoot (): Promise<string> {
   if (_appPathRoot) {
     return _appPathRoot
   }
@@ -28,7 +28,7 @@ export async function getAppPathRoot () {
   )
 }
 
-export async function getSDKPathRoot () {
+export async function getSDKPathRoot (): Promise<string> {
   if (IS_DEV) {
     // TODO: cache in preference file
     return localStorage.getItem('LSP_DEV_SDK_ROOT') || 'http://localhost:8080'