forked from hashicorp/dev-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
global.d.ts
42 lines (34 loc) · 1004 Bytes
/
global.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
/// <reference types="@hashicorp/platform-types" />
declare module '@hashicorp/platform-configs/jest/config.js'
declare module '@hashicorp/react-search'
/**
* Application config, defined in environment-specific JSON files in `config/`
*/
declare const __config: typeof import('./config/base.json')
declare module '*.png'
/**
* Declare types for window.analytics from segment
* NOTE: intended to override declaration from @hashicorp/platform-types
*/
interface Window {
analytics: SegmentAnalytics.AnalyticsJS
/**
* TODO: We could install @datadog/browser-rum to get types here, I think?
* https://www.npmjs.com/package/@datadog/browser-rum
*/
DD_RUM: $TSFixMe
}
/**
* Custom utility that constructs a union of all possible property value types.
*
* ref: https://stackoverflow.com/a/49286056
*/
type ValueOf<T> = T[keyof T]
/**
* Generated files
*/
declare module '.generated/opt-in-redirect-checks'