import { ReadonlyJSONValue } from '@lumino/coreutils' ; import { ListField } from './listfield' ; import { MapField } from './mapfield' ; import { RegisterField } from './registerfield' ; import { TextField } from './textfield' ; /**
 * The namespace for the `Fields` factory functions.
 */ export namespace Fields { param options returns export function Boolean ( options = { } ) { return new RegisterField < boolean > ( { value : false , ... options } ) ; } param options returns export function Number ( options = { } ) { return new RegisterField < number > ( { value : 0 , ... options } ) ; } param options returns export function String ( options = { } ) { return new RegisterField < string > ( { value : '' , ... options } ) ; } param options returns export function List < T extends ReadonlyJSONValue > ( options = { } ) { return new ListField < T > ( options ) ; } param options returns export function Map < T extends ReadonlyJSONValue > ( options = { } ) { return new MapField < T > ( options ) ; } param options returns export function Register < T extends ReadonlyJSONValue > ( options ) { return new RegisterField < T > ( options ) ; } param options returns export function Text ( options = { } ) { return new TextField ( options ) ; } }