@oobleck/fluid-backend
Version:
Fluid Framework backend for nteract RTC
26 lines (21 loc) • 646 B
text/typescript
import {
DataObjectFactory,
SharedMap,
SharedString
} from "@fluid-experimental/fluid-framework";
import { IMarkdownCell } from "./types";
import { ProtoCellDDS } from "./protoCell";
/**
* Fluid DataObject
*/
export class TextCellDDS extends ProtoCellDDS implements IMarkdownCell {
public static DataObjectName = "text-cell";
public static readonly Factory = new DataObjectFactory(
TextCellDDS.DataObjectName,
TextCellDDS,
[SharedMap.getFactory(), SharedString.getFactory()],
{}
);
get cellType(): "MarkdownCell" { return "MarkdownCell"; }
get events$() { return this.metadata$; }
}