7 lines
181 B
TypeScript
7 lines
181 B
TypeScript
export interface Completion { name: string, description?: string }
|
|
|
|
export type CompletionFunc = (
|
|
options: Record<string, unknown>,
|
|
params: string[]
|
|
) => Promise<Completion[]>
|