Skip to content
This repository has been archived by the owner on Jun 15, 2020. It is now read-only.

Latest commit

 

History

History
23 lines (18 loc) · 698 Bytes

UrlQueryParamTypes.md

File metadata and controls

23 lines (18 loc) · 698 Bytes

UrlQueryParamTypes

An enum listing all the query parameter types that have built-in serializers for encoding in and decoding from the URL.

  • number - Used for numbers (integers or floats)
  • string - Used for strings
  • object - Used for objects
  • array - Used for arrays
  • json - Used for generic JSON values
  • date - Used for Date values
  • boolean - Used for boolean values
  • numericObject - Used for objects where all values are numbers
  • numericArray - Used for arrays where all values are numbers

Examples

import { UrlQueryParamTypes } from 'react-url-query';

const urlPropsQueryConfig = {
  foo: { type: UrlQueryParamTypes.number },
};