Merge pull request #47 from agnosticeng/fix/ts-errors

fix: update types import
This commit is contained in:
Didier Franc
2025-01-07 17:53:42 +01:00
committed by GitHub
7 changed files with 39 additions and 10 deletions

29
.github/workflows/test.yaml vendored Normal file
View File

@@ -0,0 +1,29 @@
name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run TypeScript Check
run: npm run check
- name: Run Prettier code style check
run: npm run format:check

View File

@@ -10,7 +10,8 @@
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"tauri": "tauri",
"format": "prettier --write ."
"format": "prettier --write .",
"format:check": "prettier --check ."
},
"license": "MIT",
"dependencies": {

View File

@@ -1,10 +1,9 @@
<script lang="ts">
import type { CHResponse } from '$lib/ch-engine';
import { applyType, formatValue, isSupportedType, LineChart } from '$lib/components/charts/Line';
import type { OLAPResponse } from '$lib/olap-engine';
import { BarChart } from './charts/Bar';
interface Props {
response: CHResponse;
response: OLAPResponse;
x_axis: string;
y_axis: string;
type: string;

View File

@@ -1,5 +1,5 @@
<script lang="ts">
import type { Table } from '$lib/ch-engine';
import type { Table } from '$lib/olap-engine';
import { sql } from '@codemirror/lang-sql';
import { Compartment, EditorState } from '@codemirror/state';
import { EditorView, keymap, placeholder } from '@codemirror/view';

View File

@@ -1,4 +1,4 @@
import type { ColumnDescriptor, Table } from '$lib/ch-engine';
import type { ColumnDescriptor, Table } from '$lib/olap-engine';
import type { Completion } from '@codemirror/autocomplete';
export type Schema = { [table_name: string]: ColumnDescriptor[] };

View File

@@ -1,11 +1,11 @@
<script lang="ts">
import type { CHResponse } from '$lib/ch-engine';
import { Table } from '$lib/components/Table';
import type { OLAPResponse } from '$lib/olap-engine';
import { untrack } from 'svelte';
import ChartContainer from './ChartContainer.svelte';
interface Props {
response?: CHResponse;
response?: OLAPResponse;
}
let { response }: Props = $props();

View File

@@ -1,9 +1,9 @@
<script lang="ts">
import type { CHResponse } from '$lib/ch-engine';
import type { OLAPResponse } from '$lib/olap-engine';
import { Types } from './utils';
interface Props {
response: CHResponse;
response: OLAPResponse;
}
let { response }: Props = $props();