Skip to content
Myr

Fix import syntax in example in `index.d.ts` (#437)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Pedro Augusto de Paula Barbosa · committed by GitHub · parent cfcc2dc · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:index.d.ts+2 added-2 removed
423 unmodified lines
424 @returns A [`child_process` instance](https://nodejs.org/api/child_process.html#child_process_class_childprocess), which is enhanced to also be a `Promise` for a result `Object` with `stdout` and `stderr` properties.425426 @example427 ```428 import execa from 'execa';428 import execa = require('execa');429430 (async () => {431 const {stdout} = await execa('echo', ['unicorns']);432 console.log(stdout);
65 unmodified lines
498 @returns A [`child_process` instance](https://nodejs.org/api/child_process.html#child_process_class_childprocess), which is enhanced to also be a `Promise` for a result `Object` with `stdout` and `stderr` properties.499500 @example501 ```502 import execa from 'execa';502 import execa = require('execa');503504 (async () => {505 const {stdout} = await execa.command('echo unicorns');506 console.log(stdout);
43 unmodified lines