UNPKG

@yaakapp/api

Version:

Yaak is a desktop [API client](https://yaak.app/blog/yet-another-api-client) for interacting with REST, GraphQL, Server Sent Events (SSE), WebSocket, and gRPC APIs. It's built using Tauri, Rust, and ReactJS.

12 lines (11 loc) 340 B
import type { FilterResponse } from '../bindings/gen_events'; import type { Context } from './Context'; export type FilterPlugin = { name: string; description?: string; onFilter(ctx: Context, args: { payload: string; filter: string; mimeType: string; }): Promise<FilterResponse> | FilterResponse; };