ValuePreferences: { [key: string]: number }

Represents preferred values along a single content negotiation dimension.

The number represents how preferred this value is from 0 to 1. Follows the quality values rule from RFC 7231: "The weight is normalized to a real number in the range 0 through 1, where 0.001 is the least preferred and 1 is the most preferred; a value of 0 means "not acceptable"."

Because of an open issue in Components.js we cannot use Record<string, number> right now. https://github.com/LinkedSoftwareDependencies/Components-Generator.js/issues/103

Type declaration

  • [key: string]: number