/** * Copyright (c) 2017 molio contributors, licensed under MIT, See LICENSE file for more info. * * @author David Sehnal */ interface BitFlags { '@type': Flags } namespace BitFlags { export function has(flags: BitFlags, flag: F) { return ((flags as any) & (flag as any)) !== 0; } } export default BitFlags