pageFilters.ts 319 B

123456789101112131415
  1. import type {PageFilters as PageFilterType} from 'sentry/types';
  2. export function PageFilters(params: Partial<PageFilterType> = {}): PageFilterType {
  3. return {
  4. datetime: {
  5. end: null,
  6. period: null,
  7. start: null,
  8. utc: null,
  9. },
  10. environments: [],
  11. projects: [],
  12. ...params,
  13. };
  14. }