Skip to content

Commit

Permalink
Fix import syntax in example in index.d.ts (#437)
Browse files Browse the repository at this point in the history
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
  • Loading branch information
papb and sindresorhus committed Oct 12, 2020
1 parent cfcc2dc commit 3694816
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Expand Up @@ -425,7 +425,7 @@ declare const execa: {
@example
```
import execa from 'execa';
import execa = require('execa');
(async () => {
const {stdout} = await execa('echo', ['unicorns']);
Expand Down Expand Up @@ -499,7 +499,7 @@ declare const execa: {
@example
```
import execa from 'execa';
import execa = require('execa');
(async () => {
const {stdout} = await execa.command('echo unicorns');
Expand Down

0 comments on commit 3694816

Please sign in to comment.