From 36948161391f9bf41020bf6a578c692ef1b70845 Mon Sep 17 00:00:00 2001 From: Pedro Augusto de Paula Barbosa Date: Mon, 12 Oct 2020 19:10:02 -0300 Subject: [PATCH] Fix import syntax in example in `index.d.ts` (#437) Co-authored-by: Sindre Sorhus --- index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index 76a20bfb3..8e1050a94 100644 --- a/index.d.ts +++ b/index.d.ts @@ -425,7 +425,7 @@ declare const execa: { @example ``` - import execa from 'execa'; + import execa = require('execa'); (async () => { const {stdout} = await execa('echo', ['unicorns']); @@ -499,7 +499,7 @@ declare const execa: { @example ``` - import execa from 'execa'; + import execa = require('execa'); (async () => { const {stdout} = await execa.command('echo unicorns');