decord/source/modules/chat/native/ChatChangesetUpdateTracker.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

32 lines
823 B
TypeScript

// Module ID: 11273
// Function ID: 11274
// Name: weakMap
// Dependencies: [2]
// Exports: getAndIncrementChangesetIdForChat, getChangesetIdForChat
// Module 11273 (weakMap)
import set from "set" /* 2 */;
const weakMap = new WeakMap();
let result = set.fileFinishedImporting("modules/chat/native/ChatChangesetUpdateTracker.tsx");
export const getAndIncrementChangesetIdForChat = function getAndIncrementChangesetIdForChat(arg0) {
let num = weakMap.get(arg0);
if (num == null) {
num = 0;
}
const sum = num + 1;
const result = weakMap.set(arg0, sum);
return sum;
};
export const getChangesetIdForChat = function getChangesetIdForChat(current) {
let num = 0;
if (null != current) {
let num2 = weakMap.get(current);
if (num2 == null) {
num2 = 0;
}
num = num2;
}
return num;
};