From 2ee6250db9223eaab8be6c730be9923ff8902ae2 Mon Sep 17 00:00:00 2001 From: Alexander Rose <alex.rose@rcsb.org> Date: Tue, 29 Jan 2019 12:36:09 -0800 Subject: [PATCH] type def tweak --- src/mol-model/structure/model/types.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/mol-model/structure/model/types.ts b/src/mol-model/structure/model/types.ts index 22714b509..e3c42bba6 100644 --- a/src/mol-model/structure/model/types.ts +++ b/src/mol-model/structure/model/types.ts @@ -56,10 +56,7 @@ export const enum MoleculeType { saccharide } -const AtomRole = { - trace: '', direction: '', backboneStart: '', backboneEnd: '' -} -export type AtomRole = keyof typeof AtomRole +export type AtomRole = 'trace' | 'direction' | 'backboneStart' | 'backboneEnd' export const MoleculeTypeAtomRoleId: { [k: number]: { [k in AtomRole]: string } } = { [MoleculeType.protein]: { -- GitLab