selector_support.ts

pull/692/head
Rick Carlino 2018-03-02 12:45:31 -06:00
parent c8f3ea52d8
commit 115049a99c
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
// export function indexSequenceById(index: ResourceIndex) {
// const output: CowardlyDictionary<TaggedSequence> = {};
// const uuids = index.byKind.Sequence;
// uuids.map(uuid => {
// assertUuid("Sequence", uuid);
// const sequence = index.references[uuid];
// if (sequence && isTaggedSequence(sequence) && sequence.body.id) {
// output[sequence.body.id] = sequence;
// }
// });
// return output;
// }
type IndexLookupDictionary = Dictionary<Resource<"Sequence", Sequence> | undefined>;
type Indexer = (index: ResourceIndex): IndexLookupDictionary;