Skip to content

Add shared File type in interfaces.ts - #86

Merged
elicwhite merged 1 commit into
masterfrom
add-file-type
Apr 21, 2026
Merged

Add shared File type in interfaces.ts#86
elicwhite merged 1 commit into
masterfrom
add-file-type

Conversation

@elicwhite

Copy link
Copy Markdown
Owner

The { fileName: string; data: Uint8Array } shape was inlined in every
scan-chart API that takes a chart folder — scanChart, parseChartAndIni,
scanIni, scanAudio, scanImage, scanVideo, and the test helpers. Extract
it as a named type File (exported from interfaces.ts) so consumers
and downstream writer APIs reference a single canonical shape. No
runtime change; purely a type rename.

The `{ fileName: string; data: Uint8Array }` shape was inlined in every
scan-chart API that takes a chart folder — scanChart, parseChartAndIni,
scanIni, scanAudio, scanImage, scanVideo, and the test helpers. Extract
it as a named type `File` (exported from `interfaces.ts`) so consumers
and downstream writer APIs reference a single canonical shape. No
runtime change; purely a type rename.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant