Skip to content

Commit 2306bc2

Browse files
committed
wip
1 parent 3131a61 commit 2306bc2

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

packages/signals/signals/README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,13 @@ analytics.load({
5959
```ts
6060
import { signalsPlugin } from './analytics' // assuming you exported your plugin instance.
6161
62-
signalsPlugin.addSignal({
63-
type: 'userDefined',
64-
data: { foo: 'bar' }
65-
})
62+
signalsPlugin.addSignal({ someData: 'foo' })
63+
64+
// emits a signal with the following shape
65+
{
66+
type: 'userDefined'
67+
data: { someData: 'foo', ... }
68+
}
6669
```
6770

6871
### Debugging

0 commit comments

Comments
 (0)