File tree 2 files changed +6
-7
lines changed
2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -294,7 +294,7 @@ function handleProcess<A>(options: SelectOptions<A> & MultiSelectOptions) {
294
294
295
295
function handleRender < A > ( options : SelectOptions < A > ) {
296
296
return ( state : State , action : Prompt . Prompt . Action < State , Array < A > > ) => {
297
- return Action . $ match( action , {
297
+ return Action . match ( action , {
298
298
Beep : ( ) => Effect . succeed ( renderBeep ) ,
299
299
NextFrame : ( { state } ) => renderNextFrame ( state , options ) ,
300
300
Submit : ( ) => renderSubmission ( state , options )
Original file line number Diff line number Diff line change @@ -426,12 +426,11 @@ export const repeat = <A>(self: Config.Config<A>): Config.Config<Array<A>> => {
426
426
}
427
427
428
428
/** @internal */
429
- export const redacted = ( name ?: string ) : Config . Config < Redacted . Redacted > => {
430
- const config = primitive (
431
- "a redacted property" ,
432
- ( text ) => Either . right ( redacted_ . make ( text ) )
433
- )
434
- return name === undefined ? config : nested ( config , name )
429
+ export const redacted = < A > (
430
+ nameOrConfig ?: string | Config . Config < A >
431
+ ) : Config . Config < Redacted . Redacted < A | string > > => {
432
+ const config : Config . Config < A | string > = isConfig ( nameOrConfig ) ? nameOrConfig : string ( nameOrConfig )
433
+ return map ( config , redacted_ . make )
435
434
}
436
435
437
436
/** @internal */
You can’t perform that action at this time.
0 commit comments