Interface RepresentationPreferences

Contains preferences along multiple content negotiation dimensions.

All dimensions are optional for ease of constructing; either undefined or an empty ValuePreferences can indicate that no preferences were specified.

Hierarchy

  • RepresentationPreferences

Properties

datetime?: ValuePreferences
encoding?: ValuePreferences
language?: ValuePreferences
range?: {
    parts: {
        end?: number;
        start: number;
    }[];
    unit: string;
}

Type declaration

  • parts: {
        end?: number;
        start: number;
    }[]
  • unit: string