Skip to content

Commit 55f1f16

Browse files
author
Marvin Zhang
committed
fix: update variable type for varContext in createSpec function
1 parent 01c791b commit 55f1f16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/cli/src/commands/create.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import yaml from 'js-yaml';
66
import { Command } from 'commander';
77
import { loadConfig, extractGroup, resolvePrefix } from '../config.js';
88
import { getGlobalNextSeq } from '../utils/path-helpers.js';
9-
import { buildVariableContext, resolveVariables } from '../utils/variable-resolver.js';
9+
import { buildVariableContext, resolveVariables, type VariableContext } from '../utils/variable-resolver.js';
1010
import type { SpecPriority } from '../frontmatter.js';
1111
import { normalizeDateFields } from '../frontmatter.js';
1212
import { autoCheckIfEnabled } from './check.js';
@@ -178,7 +178,7 @@ export async function createSpec(name: string, options: {
178178

179179
// Load spec template from .lean-spec/templates/
180180
let content: string;
181-
let varContext: Record<string, unknown>;
181+
let varContext: VariableContext;
182182

183183
try {
184184
const template = await fs.readFile(templatePath, 'utf-8');

0 commit comments

Comments
 (0)