about summary refs log tree commit diff
path: root/src/lib/statsig/gates.ts
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2024-04-10 19:36:37 +0100
committerGitHub <noreply@github.com>2024-04-10 19:36:37 +0100
commit427f3a848d3bdc2e9c4b6b7cb2b8699511339ee2 (patch)
treee50dd6fc56e45170730223c53180389cfab676cf /src/lib/statsig/gates.ts
parentbf974b147ec8ba2b84803d17f8ca1f9291726ed2 (diff)
downloadvoidsky-427f3a848d3bdc2e9c4b6b7cb2b8699511339ee2.tar.zst
[Statsig] Typecheck gates (#3467)
* Typecheck gates

* Lint against untyped useGate()

* Alphabetic
Diffstat (limited to 'src/lib/statsig/gates.ts')
-rw-r--r--src/lib/statsig/gates.ts11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/lib/statsig/gates.ts b/src/lib/statsig/gates.ts
index fce25cb88..c755ad437 100644
--- a/src/lib/statsig/gates.ts
+++ b/src/lib/statsig/gates.ts
@@ -1,3 +1,8 @@
-import {useGate} from './statsig'
-
-export const useNewSearchGate = () => useGate('new_search')
+export type Gate =
+  // Keep this alphabetic please.
+  | 'autoexpand_suggestions_on_profile_follow'
+  | 'disable_min_shell_on_foregrounding'
+  | 'disable_poll_on_discover'
+  | 'new_search'
+  | 'show_follow_back_label'
+  | 'start_session_with_following'