From 2ceb5cbc4281daea8216257e74cc4ec741e8fd1e Mon Sep 17 00:00:00 2001 From: John Gee Date: Mon, 1 Jan 2024 12:08:30 +1300 Subject: [PATCH] docs: fix typos in .terminalWidth example --- docs/typescript.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/typescript.md b/docs/typescript.md index 2086c45e7..d3f10d8aa 100644 --- a/docs/typescript.md +++ b/docs/typescript.md @@ -131,8 +131,8 @@ import { hideBin } from 'yargs/helpers'; const yargsInstance = yargs(hideBin(process.argv)); -cosnt args = yargsInstance - .wrap(myYargs.terminalWidth()) +const args = yargsInstance + .wrap(yargsInstance.terminalWidth()) // .otherMethods(...) .argv