decord/source/modules/share/ShareConstants.tsx

16 lines
674 B
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 7106
// Function ID: 57147
2026-07-20 16:05:17 +00:00
// Name: ALLOWED_TYPES
2026-07-24 07:16:23 +00:00
// Dependencies: [7093, 2]
2026-07-20 16:05:17 +00:00
// Exports: isAllowedType
2026-07-24 07:16:23 +00:00
// Module 7106 (ALLOWED_TYPES)
2026-07-23 10:11:24 +00:00
const items = [require("sortByMatchScore").AutocompleterResultTypes.USER, require("sortByMatchScore").AutocompleterResultTypes.TEXT_CHANNEL, require("sortByMatchScore").AutocompleterResultTypes.VOICE_CHANNEL, require("sortByMatchScore").AutocompleterResultTypes.GROUP_DM];
2026-07-20 16:05:17 +00:00
const arr = Array.from(items);
2026-07-23 10:11:24 +00:00
const result = require("set").fileFinishedImporting("modules/share/ShareConstants.tsx");
2026-07-20 16:05:17 +00:00
export const ALLOWED_TYPES = arr;
export const isAllowedType = function isAllowedType(type) {
return arr.includes(type.type);
};