Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused imports to prevent TS errors #1605

Merged
merged 1 commit into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion packages/react-duckdb/src/connection_provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React from 'react';
import * as imm from 'immutable';
import * as duckdb from '@duckdb/duckdb-wasm';
import { useDuckDB, useDuckDBResolver } from './database_provider';
import { ResolvableStatus } from './resolvable';

type DialerFn = (id?: number) => void;

Expand Down
4 changes: 2 additions & 2 deletions packages/react-duckdb/src/database_provider.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { ReactElement } from 'react';
import * as duckdb from '@duckdb/duckdb-wasm';
import { useDuckDBLogger, useDuckDBBundle, useDuckDBBundleResolver } from './platform_provider';
import { Resolvable, Resolver, ResolvableStatus } from './resolvable';
import { useDuckDBLogger, useDuckDBBundleResolver } from './platform_provider';
import { Resolvable, Resolver } from './resolvable';

const setupCtx = React.createContext<Resolvable<duckdb.AsyncDuckDB, duckdb.InstantiationProgress> | null>(null);
const resolverCtx = React.createContext<Resolver<duckdb.AsyncDuckDB> | null>(null);
Expand Down
2 changes: 1 addition & 1 deletion packages/react-duckdb/src/platform_provider.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import * as duckdb from '@duckdb/duckdb-wasm';
import { Resolvable, Resolver, ResolvableStatus } from './resolvable';
import { Resolvable, Resolver } from './resolvable';

type PlatformProps = {
children: React.ReactElement | React.ReactElement[];
Expand Down