decord/source/modules/share/ShareConstants.tsx
2026-08-27 16:17:25 +00:00

18 lines
713 B
TypeScript

// Module ID: 10639
// Function ID: 10640
// Name: ALLOWED_TYPES
// Dependencies: [9844, 2]
// Exports: isAllowedType
// Module 10639 (ALLOWED_TYPES)
import set from "set" /* 2 */;
import sortByMatchScore from "sortByMatchScore" /* 9844 */;
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);
};