Skip to content

Commit

Permalink
rebase fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart authored and effect-bot committed Dec 21, 2024
1 parent 062c4d2 commit 7dcad95
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/cli/src/internal/prompt/multi-select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ function handleProcess<A>(options: SelectOptions<A> & MultiSelectOptions) {

function handleRender<A>(options: SelectOptions<A>) {
return (state: State, action: Prompt.Prompt.Action<State, Array<A>>) => {
return Action.$match(action, {
return Action.match(action, {
Beep: () => Effect.succeed(renderBeep),
NextFrame: ({ state }) => renderNextFrame(state, options),
Submit: () => renderSubmission(state, options)
Expand Down
11 changes: 5 additions & 6 deletions packages/effect/src/internal/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -426,12 +426,11 @@ export const repeat = <A>(self: Config.Config<A>): Config.Config<Array<A>> => {
}

/** @internal */
export const redacted = (name?: string): Config.Config<Redacted.Redacted> => {
const config = primitive(
"a redacted property",
(text) => Either.right(redacted_.make(text))
)
return name === undefined ? config : nested(config, name)
export const redacted = <A>(
nameOrConfig?: string | Config.Config<A>
): Config.Config<Redacted.Redacted<A | string>> => {
const config: Config.Config<A | string> = isConfig(nameOrConfig) ? nameOrConfig : string(nameOrConfig)
return map(config, redacted_.make)
}

/** @internal */
Expand Down

0 comments on commit 7dcad95

Please sign in to comment.