decord/source/modules/share/ShareConstants.tsx

16 lines
674 B
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 6124
// Function ID: 54959
2026-07-20 16:05:17 +00:00
// Name: ALLOWED_TYPES
2026-07-25 08:10:48 +00:00
// Dependencies: [6111, 2]
2026-07-20 16:05:17 +00:00
// Exports: isAllowedType
2026-07-25 08:10:48 +00:00
// Module 6124 (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);
};