mirror of
https://github.com/EthanMarti/infio-copilot.git
synced 2026-05-08 16:10:09 +00:00
use eslint auto fix
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { PGlite } from '@electric-sql/pglite'
|
||||
// @ts-ignore
|
||||
// @ts-expect-error
|
||||
import { type PGliteWithLive, live } from '@electric-sql/pglite/live'
|
||||
import { App, normalizePath } from 'obsidian'
|
||||
|
||||
|
||||
@@ -271,7 +271,7 @@ export class VectorManager {
|
||||
}
|
||||
return null
|
||||
}),
|
||||
).then((files) => files.filter(Boolean) as TFile[])
|
||||
).then((files) => files.filter(Boolean))
|
||||
|
||||
return filesToIndex
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ import { SUPPORT_EMBEDDING_SIMENTION } from '../constants'
|
||||
import { EmbeddingModelId } from '../types/embedding'
|
||||
|
||||
// PostgreSQL column types
|
||||
interface ColumnDefinition {
|
||||
type ColumnDefinition = {
|
||||
type: string
|
||||
notNull?: boolean
|
||||
primaryKey?: boolean
|
||||
@@ -14,7 +14,7 @@ interface ColumnDefinition {
|
||||
dimensions?: number
|
||||
}
|
||||
|
||||
interface TableDefinition {
|
||||
type TableDefinition = {
|
||||
name: string
|
||||
columns: Record<string, ColumnDefinition>
|
||||
indices?: Record<string, {
|
||||
@@ -61,7 +61,7 @@ export const vectorTables = SUPPORT_EMBEDDING_SIMENTION.reduce<
|
||||
}, {})
|
||||
|
||||
// Type definitions for vector table
|
||||
export interface VectorRecord {
|
||||
export type VectorRecord = {
|
||||
id: number
|
||||
path: string
|
||||
mtime: number
|
||||
@@ -91,7 +91,7 @@ export type TemplateContent = {
|
||||
nodes: SerializedLexicalNode[]
|
||||
}
|
||||
|
||||
export interface TemplateRecord {
|
||||
export type TemplateRecord = {
|
||||
id: string
|
||||
name: string
|
||||
content: TemplateContent
|
||||
@@ -113,14 +113,14 @@ export const templateTable: TableDefinition = {
|
||||
}
|
||||
}
|
||||
|
||||
export interface Conversation {
|
||||
export type Conversation = {
|
||||
id: string // uuid
|
||||
title: string
|
||||
createdAt: Date
|
||||
updatedAt: Date
|
||||
}
|
||||
|
||||
export interface Message {
|
||||
export type Message = {
|
||||
id: string // uuid
|
||||
conversationId: string // uuid
|
||||
role: 'user' | 'assistant'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export interface SqlMigration {
|
||||
export type SqlMigration = {
|
||||
description: string;
|
||||
sql: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user