@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 CHANGED
@@ -677,12 +677,13 @@ interface BasePlugin {
677
677
  }
678
678
  export interface MarkdownPlugin extends BasePlugin {
679
679
  type: 'markdown';
680
- fun: (...args: any[]) => Plugin;
680
+ fun: (config: Record<string, unknown>) => Plugin;
681
681
  }
682
682
  export interface LiquidPlugin extends BasePlugin {
683
683
  type: 'liquid';
684
- fun: (...args: any[]) => (liquid: Liquid) => void;
684
+ fun: (config: Record<string, unknown>) => (liquid: Liquid) => void;
685
685
  }
686
- export type BaganPlugin = MarkdownPlugin | LiquidPlugin;
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: (...args: any[]) => Plugin;
680
+ fun: (config: Record<string, unknown>) => Plugin;
681
681
  }
682
682
  export interface LiquidPlugin extends BasePlugin {
683
683
  type: 'liquid';
684
- fun: (...args: any[]) => (liquid: Liquid) => void;
684
+ fun: (config: Record<string, unknown>) => (liquid: Liquid) => void;
685
685
  }
686
- export type BaganPlugin = MarkdownPlugin | LiquidPlugin;
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bagandev/types",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Types for Bagan",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -44,4 +44,4 @@
44
44
  "package.json",
45
45
  "README.md"
46
46
  ]
47
- }
47
+ }