1234567891011121314151617 |
- /**
- * Copyright (c) 2018 mol* contributors, licensed under MIT, See LICENSE file for more info.
- *
- * @author Alexander Rose <alexander.rose@weirdbyte.de>
- */
- import { Element } from './structure'
- import { Bond } from './structure/structure/unit/bonds'
- /** A Loci that includes every loci */
- export const EveryLoci = { kind: 'every-loci' as 'every-loci' }
- export type EveryLoci = typeof EveryLoci
- export function isEveryLoci(x: any): x is EveryLoci {
- return !!x && x.kind === 'every-loci';
- }
- export type Loci = Element.Loci | Bond.Loci | EveryLoci
|