Skip to content

Commit

Permalink
Better typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Dec 12, 2023
1 parent 2a358a0 commit 6a1d07c
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 47 deletions.
28 changes: 0 additions & 28 deletions src/demo/App.js

This file was deleted.

5 changes: 0 additions & 5 deletions src/demo/index.js

This file was deleted.

6 changes: 1 addition & 5 deletions src/lib/components/CircularGenomeView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
JBrowseCircularGenomeView,
} from '@jbrowse/react-circular-genome-view'


/**
* CircularGenomeView renders the JBrowse 2 React Circular Genome View.
* Any JB2 CGV configuration is also valid configuration for this
Expand All @@ -17,9 +16,7 @@ export default function CircularGenomeView({
defaultSession,
aggregateTextSearchAdapters,
configuration,
}: Record<string, unknown>) {


}: Parameters<typeof createViewState>[0] & { id: string }) {
const viewState = createViewState({
assembly,
tracks,
Expand All @@ -34,4 +31,3 @@ export default function CircularGenomeView({
</div>
)
}

10 changes: 1 addition & 9 deletions src/lib/components/LinearGenomeView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@ import {
JBrowseLinearGenomeView,
} from '@jbrowse/react-linear-genome-view'


/**
* LinearGenomeView renders the JBrowse 2 React Linear Genome View.
* Any JB2 LGV configuration is also valid configuration for this
* component.
*/
export default function LinearGenomeView({
id,
assembly,
Expand All @@ -18,8 +12,7 @@ export default function LinearGenomeView({
location,
aggregateTextSearchAdapters,
configuration,
}: Record<string, unknown>) {

}: Parameters<typeof createViewState>[0] & { id: string }) {
const viewState = createViewState({
assembly,
tracks,
Expand All @@ -35,4 +28,3 @@ export default function LinearGenomeView({
</div>
)
}

0 comments on commit 6a1d07c

Please sign in to comment.