MCPcopy Create free account
hub / github.com/Effect-TS/effect / processAutoCompleteClear

Function processAutoCompleteClear

packages/effect/src/unstable/cli/Prompt.ts:3339–3340  ·  view source on GitHub ↗
(state: AutoCompleteState, options: AutoCompleteOptionsReq<A>)

Source from the content-addressed store, hash-verified

3337}
3338
3339const processAutoCompleteClear = <A>(state: AutoCompleteState, options: AutoCompleteOptionsReq<A>) =>
3340 Effect.succeed(Action.NextFrame({ state: updateAutoCompleteState(state, options, "") }))
3341
3342const processAutoCompleteInput = <A>(input: string, state: AutoCompleteState, options: AutoCompleteOptionsReq<A>) => {
3343 if (input.length === 0) {

Callers 1

Calls 2

updateAutoCompleteStateFunction · 0.85
succeedMethod · 0.45

Tested by

no test coverage detected