Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc/transport: fix export typo #1173

Merged
merged 1 commit into from
Oct 19, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/transports.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ You can see an example using a async iterator with ESM:
```js
import build from 'pino-abstract-stream'

exports default async function (opts) {
export default async function (opts) {
return build(async function (source) {
for await (let obj of source) {
console.log(obj)
Expand Down Expand Up @@ -150,7 +150,7 @@ As an example, the following transport returns a `Transform` stream:
```js
import build from 'pino-abstract-transport'
import { pipeline, Transform } from 'stream'
exports default async function (options) {
export default async function (options) {
return build(function (source) {
const myTransportStream = new Transform({
// Make sue autoDestroy is set,
Expand Down