Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
fix imports of createTRPCProxyClient
  • Loading branch information
grmkris authored Aug 23, 2023
1 parent c47360f commit e9c08b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export const chromeClient = createTRPCProxyClient<AppRouter>({

```typescript
// inpage.ts
import { createTRPCClient } from '@trpc/client';
import { createTRPCProxyClient } from '@trpc/client';
import { windowLink } from 'trpc-browser/link';

import type { AppRouter } from './background';
Expand Down Expand Up @@ -138,7 +138,7 @@ createWindowHandler({
**2. Add a `windowLink` or `popupLink` to the client**

```typescript
import { createTRPCClient } from '@trpc/client';
import { createTRPCProxyClient } from '@trpc/client';
import { popupLink, windowLink } from 'trpc-browser/link';

import type { AppRouter } from './main';
Expand Down

0 comments on commit e9c08b6

Please sign in to comment.