Skip to content

Commit c8725f3

Browse files
committed
chore: fix remaining ts declaration issues
1 parent abebefe commit c8725f3

File tree

2 files changed

+1
-60
lines changed

2 files changed

+1
-60
lines changed

esbuild.config.js

Lines changed: 1 addition & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -50,65 +50,7 @@ const builds = [
5050
];
5151

5252
// TypeScript declaration content
53-
const typeDeclaration = `// Type definitions for @matdata/yasgui-graph-plugin
54-
// Project: https://github.com/Matdata-eu/yasgui-graph-plugin
55-
56-
declare module '@matdata/yasgui-graph-plugin' {
57-
import type { Plugin, DownloadInfo } from '@zazuko/yasr/build/ts/plugins';
58-
import type Yasr from '@zazuko/yasr';
59-
60-
/**
61-
* YASGUI plugin for visualizing SPARQL CONSTRUCT and DESCRIBE query results as interactive graphs
62-
*/
63-
export default class GraphPlugin implements Plugin<any> {
64-
/**
65-
* Plugin priority (higher = shown first in tabs)
66-
*/
67-
priority: number;
68-
69-
/**
70-
* Plugin label for tab display
71-
*/
72-
label?: string;
73-
74-
/**
75-
* Reference to help documentation
76-
*/
77-
helpReference?: string;
78-
79-
/**
80-
* Check if plugin can handle the current results
81-
* @returns True if results are from CONSTRUCT or DESCRIBE query
82-
*/
83-
canHandleResults(): boolean;
84-
85-
/**
86-
* Render the graph visualization
87-
*/
88-
draw(persistentConfig: any, runtimeConfig?: any): Promise<void> | void;
89-
90-
/**
91-
* Get icon element for plugin tab
92-
*/
93-
getIcon(): Element | undefined;
94-
95-
/**
96-
* Download the current visualization as PNG
97-
*/
98-
download(filename?: string): DownloadInfo | undefined;
99-
100-
/**
101-
* Cleanup resources when plugin is destroyed
102-
*/
103-
destroy?(): void;
104-
105-
/**
106-
* Get vis-network configuration options
107-
* @returns Network options for vis-network
108-
*/
109-
getNetworkOptions(): any;
110-
}
111-
}
53+
const typeDeclaration = `declare module '@matdata/yasgui-graph-plugin';
11254
`;
11355

11456
// Build all formats

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
"keywords": ["yasgui", "sparql", "rdf", "graph", "visualization"],
2727
"author": "Matdata",
2828
"license": "Apache-2.0",
29-
"type": "commonjs",
3029
"bugs": {
3130
"url": "https://github.com/Matdata-eu/yasgui-graph-plugin/issues"
3231
},

0 commit comments

Comments
 (0)