a collection of lightweight TypeScript packages for AT Protocol, the protocol powering Bluesky
atproto bluesky typescript npm
101
fork

Configure Feed

Select the types of activity you want to include in your feed.

refactor(oauth-browser-client): make use of the new xrpc interfaces

Mary d3c08514 c5a073be

+3 -4
+3 -4
packages/oauth/browser-client/lib/resolvers.ts
··· 1 1 import type { ComAtprotoIdentityResolveHandle } from '@atcute/atproto'; 2 2 import { type DidDocument, getPdsEndpoint } from '@atcute/identity'; 3 - import type { Did, InferXRPCBodyOutput } from '@atcute/lexicons'; 3 + import type { Did } from '@atcute/lexicons'; 4 4 import { isDid } from '@atcute/lexicons/syntax'; 5 5 6 6 import { DEFAULT_APPVIEW_URL } from './constants.js'; ··· 28 28 throw new ResolverError(`directory is unreachable`); 29 29 } 30 30 31 - const json = (await response.json()) as InferXRPCBodyOutput< 32 - ComAtprotoIdentityResolveHandle.mainSchema['output'] 33 - >; 31 + const json = (await response.json()) as ComAtprotoIdentityResolveHandle.$output; 32 + 34 33 return json.did; 35 34 }; 36 35