import { WINDOWS_TO_IANA_MAP } from './data' ; import type { IanaName , WindowsZoneName } from './data' ; import { findIanaAliases } from './findIanaAliases' ; export function findWindows ( ianaTimeZone ) ; export function findWindows ( ianaTimeZone ) ; export function findWindows ( ianaTimeZone ) { const aliases = findIanaAliases ( ianaTimeZone ) ; const result = new Set < WindowsZoneName > ( ) ; WINDOWS_TO_IANA_MAP . filter ( ( it ) => ( ( it . iana as unknown ) as IanaName [ ] ) . find ( ( it ) => aliases . includes ( it as IanaName ) ) ) . forEach ( ( entry ) => { result . add ( entry . windowsName as WindowsZoneName ) ; } ) ; return Array . from ( result ) ; }