Skip to content

Commit 131b6fe

Browse files
tim-smarteffect-bot
authored andcommitted
rebase fixes
1 parent 9796ba9 commit 131b6fe

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

packages/cli/src/internal/prompt/multi-select.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ function handleProcess<A>(options: SelectOptions<A> & MultiSelectOptions) {
294294

295295
function handleRender<A>(options: SelectOptions<A>) {
296296
return (state: State, action: Prompt.Prompt.Action<State, Array<A>>) => {
297-
return Action.$match(action, {
297+
return Action.match(action, {
298298
Beep: () => Effect.succeed(renderBeep),
299299
NextFrame: ({ state }) => renderNextFrame(state, options),
300300
Submit: () => renderSubmission(state, options)

packages/effect/src/internal/config.ts

+5-6
Original file line numberDiff line numberDiff line change
@@ -426,12 +426,11 @@ export const repeat = <A>(self: Config.Config<A>): Config.Config<Array<A>> => {
426426
}
427427

428428
/** @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)
435434
}
436435

437436
/** @internal */

0 commit comments

Comments
 (0)