@netlify/content-engine
Version:
46 lines • 1.34 kB
TypeScript
export interface IRawSiteConfig {
plugins?: Array<PluginRef>;
}
export interface ISiteConfig extends IRawSiteConfig {
plugins?: Array<IPluginRefObject>;
}
export interface IPluginInfo {
/** Unique ID describing a plugin */
id: string;
/** The absolute path to the plugin */
resolve: string;
/** The absolute path to the compiled plugin's gatsby-node module, if there is one */
resolvedCompiledGatsbyNode?: string;
/** The plugin name */
name: string;
/** The plugin version (can be content hash) */
version: string;
/** Options passed to the plugin */
pluginOptions?: IPluginInfoOptions;
subPluginPaths?: Array<string>;
module?: any;
modulePath?: string;
}
export interface IPluginInfoOptions {
plugins?: Array<IPluginInfo>;
path?: string;
[option: string]: unknown;
}
export interface IFlattenedPlugin extends IPluginInfo {
nodeAPIs: Array<string>;
}
export interface IPluginRefObject {
resolve: string;
options?: IPluginRefOptions;
parentDir?: string;
subPluginPaths?: Array<string>;
module?: any;
modulePath?: string;
}
export type PluginRef = string | IPluginRefObject;
export interface IPluginRefOptions {
plugins?: Array<PluginRef>;
path?: string;
[option: string]: unknown;
}
//# sourceMappingURL=types.d.ts.map