import type { Swagger } from 'tsoa'; export type SecurityType = Swagger.Security['type']; const validSecurityTypes: SecurityType[] = ['basic']; export const isSecurityTypeValid = (type: string): type is SecurityType => { return validSecurityTypes.some((value) => value === type); };