chore: add ion package, codesight wiki, work plans, ascli config
New @boocode/ion package (v0.0.1) for inference optimization network. .codesight/ wiki artifacts for codebase documentation. .omo/ work plans for openspec cleanup and enhanced file panel.
This commit is contained in:
46
packages/ion/src/store/optional-deps.d.ts
vendored
Normal file
46
packages/ion/src/store/optional-deps.d.ts
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
/**
|
||||
* Type declarations for optional store dependencies.
|
||||
*
|
||||
* These modules are optional — they may not be installed.
|
||||
* We declare just enough types here for the store implementations to compile
|
||||
* without requiring the actual packages.
|
||||
*/
|
||||
|
||||
declare module 'better-sqlite3' {
|
||||
interface RunResult {
|
||||
changes: number;
|
||||
lastInsertRowid: number | bigint;
|
||||
}
|
||||
|
||||
interface Statement {
|
||||
run(...params: unknown[]): RunResult;
|
||||
get(...params: unknown[]): unknown;
|
||||
all(...params: unknown[]): unknown[];
|
||||
}
|
||||
|
||||
class Database {
|
||||
constructor(filename: string, options?: unknown);
|
||||
prepare(sql: string): Statement;
|
||||
exec(sql: string): Database;
|
||||
pragma(pragma: string): unknown;
|
||||
close(): void;
|
||||
}
|
||||
|
||||
export default Database;
|
||||
}
|
||||
|
||||
declare module 'postgres' {
|
||||
interface Sql {
|
||||
<T = unknown>(
|
||||
strings: TemplateStringsArray,
|
||||
...values: unknown[]
|
||||
): Promise<T[]>;
|
||||
unsafe(sql: string, params?: unknown[]): Promise<unknown[]>;
|
||||
json(data: unknown): unknown;
|
||||
end(): Promise<void>;
|
||||
}
|
||||
|
||||
function postgres(connectionString: string): Sql;
|
||||
|
||||
export default postgres;
|
||||
}
|
||||
Reference in New Issue
Block a user