Skip to content

Commit

Permalink
Export the resources.extractFile function
Browse files Browse the repository at this point in the history
  • Loading branch information
shalithasuranga committed Sep 10, 2024
1 parent fe2d580 commit 3348793
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/api/resources.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import { sendMessage } from '../ws/websocket';

export function getFiles(): Promise<void> {
export function getFiles(): Promise<string[]> {
return sendMessage('resources.getFiles');
};

export function extractFile(path: string, destination: string): Promise<void> {
return sendMessage('resources.extractFile', { path, destination });
};

0 comments on commit 3348793

Please sign in to comment.