mirror of
https://github.com/storytold/spark.git
synced 2026-10-17 00:12:59 +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(
|
export function tryPcSogsZip(
|
||||||
input: ArrayBuffer | Uint8Array,
|
input: ArrayBuffer | Uint8Array,
|
||||||
): { name: string; json: PcSogsJson } | undefined {
|
): { name: string; json: PcSogsJson | PcSogsV2Json } | undefined {
|
||||||
try {
|
try {
|
||||||
const fileBytes =
|
const fileBytes =
|
||||||
input instanceof ArrayBuffer ? new Uint8Array(input) : input;
|
input instanceof ArrayBuffer ? new Uint8Array(input) : input;
|
||||||
|
|||||||
Reference in New Issue
Block a user