Skip to content

Commit da7311c

Browse files
committed
chore: drop unused interface
1 parent e89cd5b commit da7311c

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

packages/core/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export type { ClackState as State, ValueWithCursorPart } from './types.js';
1+
export type { ClackState as State } from './types.js';
22
export type { ClackSettings } from './utils/settings.js';
33

44
export { default as ConfirmPrompt } from './prompts/confirm.js';

packages/core/src/prompts/prompt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default class Prompt<TValue> {
2626
protected output: Writable;
2727
private _abortSignal?: AbortSignal;
2828

29-
protected rl: ReadLine | undefined;
29+
private rl: ReadLine | undefined;
3030
private opts: Omit<PromptOptions<TValue, Prompt<TValue>>, 'render' | 'input' | 'output'>;
3131
private _render: (context: Omit<Prompt<TValue>, 'prompt'>) => string | undefined;
3232
private _track = false;

packages/core/src/types.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,3 @@ export interface ClackEvents<TValue> {
2323
finalize: () => void;
2424
beforePrompt: () => void;
2525
}
26-
27-
/**
28-
* Display a value
29-
*/
30-
export interface ValueWithCursorPart {
31-
text: string;
32-
type: 'value' | 'cursor_on_value' | 'suggestion' | 'cursor_on_suggestion';
33-
}

0 commit comments

Comments
 (0)