fix(plugin): types

This commit is contained in:
charlie
2021-07-10 12:10:47 +08:00
committed by Tienson Qin
parent f4b6995479
commit 510e21f81d

View File

@@ -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'