UNPKG

rete

Version:
6 lines (5 loc) 217 B
export interface Plugin { name: string; install: (context: any, options: any) => void; } export declare type PluginParams<T extends Plugin> = T['install'] extends (arg1: any, arg2: infer U) => any ? U : void;