2023-08-31 20:50:55 +05:30

5 lines
168 B
TypeScript

import { ChannelType } from './config';
export const isChannelType = (type: string): type is ChannelType =>
Object.values(ChannelType).includes(type as ChannelType);