Merge pull request #47 from agnosticeng/fix/ts-errors
fix: update types import
This commit is contained in:
29
.github/workflows/test.yaml
vendored
Normal file
29
.github/workflows/test.yaml
vendored
Normal 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
|
||||
@@ -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": {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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[] };
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user