From fe2d5807814fd5430cbd11242799eca829845f80 Mon Sep 17 00:00:00 2001 From: Shalitha Suranga Date: Tue, 10 Sep 2024 13:55:49 +0530 Subject: [PATCH] Export the resources.getFiles() function --- src/api/resources.ts | 5 +++++ src/index.ts | 1 + 2 files changed, 6 insertions(+) create mode 100644 src/api/resources.ts diff --git a/src/api/resources.ts b/src/api/resources.ts new file mode 100644 index 0000000..bcc717f --- /dev/null +++ b/src/api/resources.ts @@ -0,0 +1,5 @@ +import { sendMessage } from '../ws/websocket'; + +export function getFiles(): Promise { + return sendMessage('resources.getFiles'); +}; diff --git a/src/index.ts b/src/index.ts index 23d514f..5c9dd9f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -54,6 +54,7 @@ export * as events from './api/events'; export * as extensions from './api/extensions'; export * as updater from './api/updater'; export * as clipboard from './api/clipboard'; +export * as resources from './api/resources'; export * as custom from './api/custom'; export { init } from './api/init';