@atomic-ehr/codegen 0.0.1-canary.20251002074252.e71a294 → 0.0.1-canary.20251002114154.42f165c

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.
@@ -36,7 +36,7 @@ export type { CodegenLogger } from "../../../utils/codegen-logger";
36
36
  * }> {}
37
37
  * ```
38
38
  */
39
- export type GeneratorOptions<TExtensions = {}> = import("./types").BaseGeneratorOptions & TExtensions;
39
+ export type GeneratorOptions<TExtensions = Record<string, unknown>> = import("./types").BaseGeneratorOptions & TExtensions;
40
40
  /**
41
41
  * Helper type for generator result arrays
42
42
  * Useful for typing the return value of generate() methods
@@ -326,13 +326,13 @@ export interface TemplateEngine {
326
326
  * @param name - Template name
327
327
  * @param template - Template content or compiled template
328
328
  */
329
- registerTemplate(name: string, template: string | Function): void;
329
+ registerTemplate(name: string, template: string | ((...args: any[]) => any)): void;
330
330
  /**
331
331
  * Register a helper function
332
332
  * @param name - Helper name
333
333
  * @param helper - Helper function
334
334
  */
335
- registerHelper(name: string, helper: Function): void;
335
+ registerHelper(name: string, helper: (...args: any[]) => any): void;
336
336
  /**
337
337
  * Check if a template exists
338
338
  * @param name - Template name
@@ -11,5 +11,5 @@ interface GenerateArgs extends CLIArgv {
11
11
  /**
12
12
  * Main generate command - fully config-driven
13
13
  */
14
- export declare const generateCommand: CommandModule<{}, GenerateArgs>;
14
+ export declare const generateCommand: CommandModule<Record<string, unknown>, GenerateArgs>;
15
15
  export {};
@@ -15,5 +15,5 @@ interface GenerateTypeschemaArgs {
15
15
  /**
16
16
  * Generate TypeSchema from FHIR packages
17
17
  */
18
- export declare const generateTypeschemaCommand: CommandModule<{}, GenerateTypeschemaArgs>;
18
+ export declare const generateTypeschemaCommand: CommandModule<Record<string, unknown>, GenerateTypeschemaArgs>;
19
19
  export {};