From ff97d71b3889ab1bccba7bdd6f605fe0ac3219f8 Mon Sep 17 00:00:00 2001
From: David Sehnal <david.sehnal@gmail.com>
Date: Thu, 5 Oct 2017 11:01:05 +0200
Subject: [PATCH] mmCIF schema type

---
 src/reader/cif/schema/mmcif.ts | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/reader/cif/schema/mmcif.ts b/src/reader/cif/schema/mmcif.ts
index a6ce231e4..842548520 100644
--- a/src/reader/cif/schema/mmcif.ts
+++ b/src/reader/cif/schema/mmcif.ts
@@ -4,7 +4,7 @@
  * @author David Sehnal <david.sehnal@gmail.com>
  */
 
-import { Field } from '../schema'
+import { Field, Block } from '../schema'
 
 const pooledStr = Field.pooledStr();
 const str = Field.str();
@@ -226,7 +226,7 @@ const atom_site = {
     pdbx_PDB_model_num: int
 }
 
-const schema = {
+const mmCIF = {
     entry,
     entity,
     exptl,
@@ -243,4 +243,5 @@ const schema = {
     pdbx_struct_mod_residue,
     atom_site
 };
-export default schema;
\ No newline at end of file
+type mmCIF = Block.Instance<typeof mmCIF>
+export default mmCIF;
\ No newline at end of file
-- 
GitLab