Files
t3code/packages/client-runtime/src/state/composerPathSearch.ts

20 lines
528 B
TypeScript

import type { EnvironmentId } from "@t3tools/contracts";
export interface ComposerPathSearchEntry {
readonly path: string;
readonly kind: "file" | "directory";
readonly parentPath?: string;
}
export interface ComposerPathSearchState {
readonly entries: ReadonlyArray<ComposerPathSearchEntry>;
readonly isPending: boolean;
readonly error: string | null;
}
export interface ComposerPathSearchTarget {
readonly environmentId: EnvironmentId | null;
readonly cwd: string | null;
readonly query: string | null;
}