mirror of
https://github.com/storytold/spark.git
synced 2026-10-09 00:09:53 +00:00
Fix incorrect return type for tryPcSogsZip (#183)
This commit is contained in:
+1
-1
@@ -418,7 +418,7 @@ export function tryPcSogs(
|
||||
|
||||
export function tryPcSogsZip(
|
||||
input: ArrayBuffer | Uint8Array,
|
||||
): { name: string; json: PcSogsJson } | undefined {
|
||||
): { name: string; json: PcSogsJson | PcSogsV2Json } | undefined {
|
||||
try {
|
||||
const fileBytes =
|
||||
input instanceof ArrayBuffer ? new Uint8Array(input) : input;
|
||||
|
||||
Reference in New Issue
Block a user