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