decord/source/modules/share/ShareConstants.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

18 lines
713 B
TypeScript

// Module ID: 10982
// Function ID: 10983
// Name: ALLOWED_TYPES
// Dependencies: [9835, 2]
// Exports: isAllowedType
// Module 10982 (ALLOWED_TYPES)
import set from "set" /* 2 */;
import sortByMatchScore from "sortByMatchScore" /* 9835 */;
const items = [sortByMatchScore.AutocompleterResultTypes.USER, sortByMatchScore.AutocompleterResultTypes.TEXT_CHANNEL, sortByMatchScore.AutocompleterResultTypes.VOICE_CHANNEL, sortByMatchScore.AutocompleterResultTypes.GROUP_DM];
const arr = Array.from(items);
const result = set.fileFinishedImporting("modules/share/ShareConstants.tsx");
export const ALLOWED_TYPES = arr;
export const isAllowedType = function isAllowedType(type) {
return arr.includes(type.type);
};