Skip to content

Commit eef6f0c

Browse files
committed
chore: include plugin interface in ts declaration
1 parent aa0a23c commit eef6f0c

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

esbuild.config.js

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,27 +54,21 @@ const typeDeclaration = `// Type definitions for @matdata/yasgui-graph-plugin
5454
// Project: https://github.com/Matdata-eu/yasgui-graph-plugin
5555
5656
declare module '@matdata/yasgui-graph-plugin' {
57-
import type { default as Yasr } from '@zazuko/yasgui/build/ts/yasr';
57+
import type { Plugin } from '@zazuko/yasgui/build/ts/plugins';
5858
5959
/**
6060
* YASGUI plugin for visualizing SPARQL CONSTRUCT and DESCRIBE query results as interactive graphs
6161
*/
62-
export default class GraphPlugin {
63-
/**
64-
* Creates a new GraphPlugin instance
65-
* @param yasr - The YASR instance
66-
*/
67-
constructor(yasr: typeof Yasr);
68-
62+
export default class GraphPlugin extends Plugin {
6963
/**
7064
* Plugin priority (higher = shown first in tabs)
7165
*/
72-
static get priority(): number;
66+
static priority: number;
7367
7468
/**
7569
* Plugin label for tab display
7670
*/
77-
static get label(): string;
71+
static label: string;
7872
7973
/**
8074
* Check if plugin can handle the current results

0 commit comments

Comments
 (0)