mirror of
https://github.com/9x/sheetmusictrainer.git
synced 2026-11-03 22:03:54 +01:00
Fix strict tsc -b errors: GiulianiPattern type import, placement null guard
This commit is contained in:
@@ -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];
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user