From 436369e9d4677e11f75829e9f30aa7e0ff771f3f Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Fri, 31 Jul 2026 15:01:53 +0300 Subject: [PATCH] rm useless type --- src/lib/constants.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/lib/constants.ts b/src/lib/constants.ts index 330cac7a70..13dba946f9 100644 --- a/src/lib/constants.ts +++ b/src/lib/constants.ts @@ -5,13 +5,6 @@ import {api} from '@bsky.app/sdk' import {BLUESKY_PROXY_DID, CHAT_PROXY_DID, IS_DEV} from '#/env' import {type app} from '#/lexicons' -/** - * The `atproto-proxy` header value: a DID plus a service fragment, e.g. - * `did:web:api.bsky.app#bsky_appview`. Kept local to this module (previously - * lived in the now-removed session `agent.ts` compat layer). - */ -type ProxyHeaderValue = `did:${string}:${string}#${string}` - export const LOCAL_DEV_SERVICE = Platform.OS === 'android' ? 'http://10.0.2.2:2583' : 'http://localhost:2583' export const STAGING_SERVICE = 'https://staging.bsky.dev' @@ -247,7 +240,7 @@ export const DEV_ENV_APPVIEW_DID = `did:plc:dw4kbjf5mn7nhenabiqpkyh3` // always export const BLUESKY_PROXY_HEADER = { value: `${BLUESKY_PROXY_DID}#bsky_appview`, get() { - return this.value as ProxyHeaderValue + return this.value as Service }, set(value: string) { this.value = value