generated from LiteLoaderQQNT/Plugin-Template
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modified: Change to using LiteLoader openExternal method.
Using open external link function provided by LiteLoader plugin framework instead of the self-written one.
- Loading branch information
Showing
4 changed files
with
18 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/** | ||
* The interface for QQNT Liteloader dev api. | ||
* | ||
* Notice the `new_config` and `default_config` should all be a Object. Passing string will cause unexpected behaviour. | ||
*/ | ||
export interface LiteLoaderInterFace<T> { | ||
api: { | ||
openPath(path: string): any; | ||
openExternal(uri: string): any; | ||
config: { | ||
set(slug: string, new_config: T): Promise<T>; | ||
get(slug: string, default_config: T): Promise<T>; | ||
} | ||
}, | ||
}; |