@bagandev/types 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.cts +4 -3
- package/dist/index.d.mts +4 -3
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -677,12 +677,13 @@ interface BasePlugin {
|
|
|
677
677
|
}
|
|
678
678
|
export interface MarkdownPlugin extends BasePlugin {
|
|
679
679
|
type: 'markdown';
|
|
680
|
-
fun: (
|
|
680
|
+
fun: (config: Record<string, unknown>) => Plugin;
|
|
681
681
|
}
|
|
682
682
|
export interface LiquidPlugin extends BasePlugin {
|
|
683
683
|
type: 'liquid';
|
|
684
|
-
fun: (
|
|
684
|
+
fun: (config: Record<string, unknown>) => (liquid: Liquid) => void;
|
|
685
685
|
}
|
|
686
|
-
export type
|
|
686
|
+
export type BaganPluginFectory = (...args: any[]) => MarkdownPlugin | LiquidPlugin;
|
|
687
|
+
export type BaganPlugin = MarkdownPlugin | LiquidPlugin | BaganPluginFectory;
|
|
687
688
|
export {};
|
|
688
689
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.mts
CHANGED
|
@@ -677,12 +677,13 @@ interface BasePlugin {
|
|
|
677
677
|
}
|
|
678
678
|
export interface MarkdownPlugin extends BasePlugin {
|
|
679
679
|
type: 'markdown';
|
|
680
|
-
fun: (
|
|
680
|
+
fun: (config: Record<string, unknown>) => Plugin;
|
|
681
681
|
}
|
|
682
682
|
export interface LiquidPlugin extends BasePlugin {
|
|
683
683
|
type: 'liquid';
|
|
684
|
-
fun: (
|
|
684
|
+
fun: (config: Record<string, unknown>) => (liquid: Liquid) => void;
|
|
685
685
|
}
|
|
686
|
-
export type
|
|
686
|
+
export type BaganPluginFectory = (...args: any[]) => MarkdownPlugin | LiquidPlugin;
|
|
687
|
+
export type BaganPlugin = MarkdownPlugin | LiquidPlugin | BaganPluginFectory;
|
|
687
688
|
export {};
|
|
688
689
|
//# sourceMappingURL=index.d.ts.map
|