Skip to content

Commit a79446e

Browse files
committed
updated some notes, minor Svelte example import fixes
1 parent df6d498 commit a79446e

2 files changed

Lines changed: 2 additions & 9 deletions

File tree

Tether4.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,4 @@ Even better, the ChannelSenderBuilder/ChannelReceiver builder do not **have** to
6363
All that needs to be provided, in the default cases, is the name and the type. For example:
6464
- `tether_agent.create_sender::<u8>("numbersOnly")` creates a ChannelSender called "numbersOnly" which will automatically expect (require) u8 payloads
6565

66-
Arguably, the TypeScript library should work in a similar way!
66+
The TypeScript library is now set up to mirror this as well (also, optional!). It means having to pass fewer arguments.

examples/svelte-ts/src/lib/TetherTester.svelte

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
<script lang="ts">
22
import { onDestroy, onMount } from "svelte";
3-
import {
4-
TetherAgent,
5-
BROWSER,
6-
ChannelSender,
7-
encode,
8-
ChannelReceiver,
9-
decode,
10-
} from "tether-agent";
3+
import { TetherAgent, BROWSER, ChannelSender } from "tether-agent";
114
125
interface CustomMessage {
136
timestamp: number;

0 commit comments

Comments
 (0)