UNPKG

canner

Version:

Build CMS in few lines of code for different data sources

33 lines (24 loc) 437 B
// @flow import type {Field} from './types'; import {types} from './types'; export default class NullField implements Field { key: string; constructor({key}: {key: string}) { this.key = key; } getKey() { return this.key; } exists() { return false; } getType() { return types.NULL; } forEach() { return; } getChild(fieldName: string) { return new NullField({key: fieldName}); } }