Fix strict tsc -b errors: GiulianiPattern type import, placement null guard

This commit is contained in:
OpenClaw
2026-09-15 06:30:26 +00:00
parent 8ecb7f2de2
commit d7549e0111
2 changed files with 2 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
import { describe, it, expect } from 'vitest';
import { generateGiulianiStudy } from './giulianiGenerator';
import { generateGiulianiStudy, type GiulianiPattern } from './giulianiGenerator';
import { scoreEvents, validateScore } from '../score/model';
const strings = [40, 45, 50, 55, 59, 64];

View File

@@ -269,6 +269,7 @@ export function generateGiulianiStudy(
let cursor = 0;
for (let b = 0; b < usableBars.length; b++) {
const { degreeIndex, placement } = usableBars[b];
if (!placement) continue; // filtered above, but satisfies strict TS
chordSymbols.push(chordNameFor(key, degreeIndex));
for (let n = 0; n < fillSlots; n++) {
const f = n % figure.length;