From 44fe2165d2ed203ab1dd1ec5f0b5d0644677004f Mon Sep 17 00:00:00 2001 From: Tangent Wantwight Date: Mon, 20 Nov 2023 22:31:28 -0500 Subject: [PATCH] const types in getOpt --- src/lib/options.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/options.ts b/src/lib/options.ts index 2935d2c..41a28c2 100644 --- a/src/lib/options.ts +++ b/src/lib/options.ts @@ -14,7 +14,7 @@ type ParsedOptions

= { error?: string; }; -export function getOpt

( +export function getOpt( argv: TextPiece[], options: P, procBody: ( @@ -60,7 +60,7 @@ export function getOpt

( } } -export function getOptRaw

( +export function getOptRaw( argv: TextPiece[], options: P, procBody: ( @@ -95,7 +95,7 @@ export function getOptRaw

( const SWITCH_REGEX = /^-([^]*)/; -function getOptCore

( +function getOptCore( argv: TextPiece[], options: P ): [ParsedOptions, TextPiece[]] {