Skip to content

PluginApiMethodContract<TParameters = unknown, TReturnValue = unknown>

The payload schemas for a single API method.

Import:

import type { PluginApiMethodContract } from '@mnaoumov/obsidian-lib/plugin/plugin-api';

Signature:

export type PluginApiMethodContract<TParameters = unknown, TReturnValue = unknown>

Signature:

type PluginApiMethodContract<TParameters = unknown, TReturnValue = unknown> = ApiMethodContract<TParameters, TReturnValue>

Type: ApiMethodContract<TParameters, TReturnValue>