code: function ResourceType(typeSpec) {
    this.include = typeSpec.include;
    if (this.include !== Resource.TYPE_SCRIPT &&
        this.include !== Resource.TYPE_CSS &&
        this.include != null) {
      throw new Error('invalid include property: ' + this.include);
    }
  }
docs: Use the Resource implementations to create a type based on SelectionType