UNPKG

@stencila/jesta

Version:

Stencila plugin for executable documents using JavaScript

25 lines (24 loc) 689 B
import { JSONSchema7 } from 'json-schema'; import { Jesta } from '.'; export declare type ParameterSchema = JSONSchema7; export declare type ParameterSchemas = Record<string, ParameterSchema>; export declare type MethodSchema = JSONSchema7 & { properties: ParameterSchemas; interruptible?: boolean; }; /** * A plugin manifest */ export interface Manifest { name: string; description: string; softwareVersion: string; installUrl: string[]; featureList: MethodSchema[]; } /** * Update the manifest for a plugin using declared schema of methods * * @param this The plugin instance. */ export declare function manifest(this: Jesta, base: Manifest): Manifest;