From 136a79a840dc36697a535a4bbb5cc8d7fae65cc2 Mon Sep 17 00:00:00 2001 From: John Gee Date: Fri, 5 Jan 2024 05:55:22 +1300 Subject: [PATCH] docs: fix typos in .terminalWidth example (#2382) Co-authored-by: Benjamin E. Coe --- 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