Front: API: Type Raw responses

This commit is contained in:
Arthur Jamet
2023-05-01 15:32:23 +01:00
parent 5c8e35ba7d
commit 18cc79f4a2

View File

@@ -282,7 +282,7 @@ export default class API {
* Retrive a song's midi partition
* @param songId the id to find the song
*/
public static async getSongMidi(songId: number): Promise<any> {
public static async getSongMidi(songId: number): Promise<ArrayBuffer> {
return API.fetch({
route: `/song/${songId}/midi`,
raw: true,
@@ -293,7 +293,7 @@ export default class API {
* Retrive a song's musicXML partition
* @param songId the id to find the song
*/
public static async getSongMusicXML(songId: number): Promise<any> {
public static async getSongMusicXML(songId: number): Promise<ArrayBuffer> {
return API.fetch({
route: `/song/${songId}/musicXml`,
raw: true,