Skip to content
Snippets Groups Projects
Select Git revision
  • ae0c8bc232e70178307376abe74d8dc5d05912f2
  • master default protected
  • iopsys
  • develop
  • gh-pages
  • 0.4.x
  • v0.5.0-rc23
  • v0.5.0-rc22
  • v0.5.0-rc21
  • v0.5.0-rc20
  • v0.5.0-rc19
  • v0.5.0-rc18
  • v0.5.0-rc17
  • 0.5.0-rc16
  • v0.5.0-rc15
  • v0.4.7
  • v0.5.0-rc12
  • v0.5.0-rc11
  • v0.4.3
  • v0.5.0-rc10
  • v0.5.0-rc9
  • v0.5.0-rc8
  • v0.5.0-rc7
  • v0.5.0-rc6
  • v0.5.0-rc5
  • v0.5.0-rc4
26 results

OptionRegistry.ts

Blame
  • OptionRegistry.ts 632 B
    import Registry = require('./Registry');
    
    type Option = boolean|number;
    
    /**
     * This class defines a registry for custom formats used within JSF.
     */
    class OptionRegistry extends Registry<Option> {
    
      constructor() {
        super();
        this.data['failOnInvalidTypes'] = true;
        this.data['defaultInvalidTypeProduct'] = null;
        this.data['useDefaultValue'] = false;
        this.data['requiredOnly'] = false;
        this.data['maxItems'] = null;
        this.data['maxLength'] = null;
        this.data['defaultMinItems'] = 0;
        this.data['defaultRandExpMax'] = 10;
        this.data['alwaysFakeOptionals'] = false;
      }
    }
    
    export = OptionRegistry;