Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
46 lines (36 sloc)
1.14 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as Immutable from "immutable"; | |
import { ContentRef } from "../../refs"; | |
import { DirectoryContentRecord, DirectoryModelRecord } from "./directory"; | |
import { DummyContentRecord, EmptyModelRecord } from "./dummy"; | |
import { FileContentRecord, FileModelRecord } from "./file"; | |
import { NotebookContentRecord, NotebookModel } from "./notebook"; | |
export * from "./notebook"; | |
export * from "./directory"; | |
export * from "./dummy"; | |
export * from "./file"; | |
export interface AuthorObject { | |
name: string; | |
} | |
export interface HeaderDataProps { | |
authors: AuthorObject[]; | |
description: string; | |
tags: string[]; | |
title: string; | |
} | |
export type ContentModel = | |
| NotebookModel | |
| DirectoryModelRecord | |
| FileModelRecord | |
| EmptyModelRecord; | |
export type ContentRecord = | |
| NotebookContentRecord | |
| DummyContentRecord | |
| FileContentRecord | |
| DirectoryContentRecord; | |
export interface ContentsRecordProps { | |
byRef: Immutable.Map<ContentRef, ContentRecord>; | |
} | |
export const makeContentsRecord = Immutable.Record<ContentsRecordProps>({ | |
byRef: Immutable.Map<ContentRef, ContentRecord>() | |
}); | |
export type ContentsRecord = Immutable.RecordOf<ContentsRecordProps>; |