decord/source/modules/collectibles/CollectiblesDebugStore.tsx
github-actions 7450227d0b chore: update source for alpha 345.4
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9596_m.js (380.6 MB)
2026-09-04 17:41:35 +00:00

38 lines
1 KiB
TypeScript

// Module ID: 7490
// Function ID: 7491
// Name: useCollectiblesDebugStore
// Dependencies: [641, 2]
// Exports: addDebugLog
// Module 7490 (useCollectiblesDebugStore)
import set from "set" /* 2 */;
import keys from "keys" /* 641 */;
let obj = keys.create((arg0) => {
closure_0 = arg0;
return {
logs: [],
addLog(arg0) {
const callback = arg0;
return callback((logs) => {
obj = { logs: null };
const items = [...logs.logs];
const date = new Date();
items[tmp] = "[" + new Date().toISOString().split("T")[0] + "] " + closure_0;
obj[0] = items;
return obj;
});
},
clearLogs() {
return callback({ logs: [] });
}
};
});
const result = set.fileFinishedImporting("modules/collectibles/CollectiblesDebugStore.tsx");
export const useCollectiblesDebugStore = obj;
export const addDebugLog = function addDebugLog(arg0) {
const date = new Date();
const state = obj.getState();
state.addLog("[" + new Date().toLocaleTimeString("en-US", { hour12: false }) + "] " + arg0);
};