/** * Copyright (c) 2017 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author David Sehnal */ type BitFlags = number & Flags; declare namespace BitFlags { function create(flags: F): BitFlags; function has(flags: BitFlags, flag: F): boolean; /** toCheck must be non-zero */ function hasAll(flags: BitFlags, toCheck: BitFlags): boolean; } export { BitFlags };