UNPKG

trifid-core

Version:
27 lines 814 B
import type { ConfigRecord, TrifidPlugin } from '../../types/index.ts'; /** * A plugin entry once its `module` has been resolved to a loaded plugin * function, but before its fields have been normalized. */ export interface LoadedPlugin { order?: number; module: TrifidPlugin; paths?: string | string[]; methods?: string | string[]; hosts?: string | string[]; config?: ConfigRecord; } /** * A plugin entry with all of its fields normalized to a predictable shape. */ export interface StandardizedPlugin { order: number; module: TrifidPlugin; paths: string[]; methods: string[]; hosts: string[]; config: ConfigRecord; } declare const standardize: (plugin: LoadedPlugin) => StandardizedPlugin; export default standardize; //# sourceMappingURL=standardize.d.ts.map