Skip to content

Commit ffa990a

Browse files
committed
fix openExternal type
1 parent adf7180 commit ffa990a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@beekeeperstudio/plugin",
3-
"version": "1.3.0",
3+
"version": "1.3.1",
44
"description": "A simple TypeScript wrapper to send messages from your Beekeeper Studio plugin to the main app.",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export async function setViewState<T>(state: T): Promise<SetViewStateResponse['r
6363
return await request({ name: "setViewState", args: { state } as SetViewStateRequest<T>['args'] });
6464
}
6565

66-
export async function openExternal(link: boolean): Promise<OpenExternalResponse['result']> {
66+
export async function openExternal(link: string): Promise<OpenExternalResponse['result']> {
6767
return await request({ name: "openExternal", args: { link } as OpenExternalRequest['args'] });
6868
}
6969

src/requestTypes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export interface SetViewStateRequest<T extends unknown> extends BaseRequest {
6565
export interface OpenExternalRequest extends BaseRequest {
6666
name: "openExternal";
6767
args: {
68-
link: boolean;
68+
link: string;
6969
};
7070
}
7171

0 commit comments

Comments
 (0)