Skip to content
Snippets Groups Projects
Select Git revision
  • e0f08e98f2803ad3e13ac8817e15461ea26f83a2
  • 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
  • user avatar
    Alvaro Cabrera authored
    e0f08e98
    History
    OptionRegistry.ts 507 B
    import Registry = require('./Registry');
    
    type Option = boolean;
    
    /**
     * 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['maxItems'] = null;
        this.data['maxLength'] = null;
        this.data['alwaysFakeOptionals'] = false;
      }
    }
    
    export = OptionRegistry;