Browse Source

Tighten tpying restriction of nbformat.ICell

By narrowing ICell to not include the base class, type guards can
effectively differentiate between the different cell types based on the
`cell.cell_type` field.
Vidar Tonaas Fauske 8 years ago
parent
commit
66b30cf92d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/notebook/notebook/nbformat.ts

+ 1 - 1
src/notebook/notebook/nbformat.ts

@@ -288,7 +288,7 @@ namespace nbformat {
    * A cell union type.
    */
   export
-  type ICell = IBaseCell | IRawCell | IMarkdownCell | ICodeCell;
+  type ICell = IRawCell | IMarkdownCell | ICodeCell;
 
 
   /**