Skip to content

Commit

Permalink
Merge pull request #6 from grmkris/master-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
janek26 authored Oct 25, 2023
2 parents 5c8158b + e9c08b6 commit 4faa5fd
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 4faa5fd

Please sign in to comment.