mirror of
https://github.com/logseq/logseq.git
synced 2026-04-29 08:26:40 +00:00
fix(plugin): types
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user