Skip to content

Commit 41390b2

Browse files
committed
add description, fix some types
1 parent abce6fd commit 41390b2

File tree

5 files changed

+5
-10
lines changed

5 files changed

+5
-10
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "optimade.science",
3+
"description": "A 'sky-scanner' OPTIMADE browser-only GUI",
34
"version": "2.0.0",
45
"private": true,
56
"license": "MIT",

src/stores/search.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ const search = derived<[Writable<StringParams>, Readable<Param[]>], StructuresBy
3232
[]
3333
);
3434

35-
export const searchAll: Asyncable<StructuresByProviders> = asyncable<[Readable<StructuresByProviders>], StructuresByProviders>(
35+
export const searchAll = asyncable<[Readable<StructuresByProviders>], StructuresByProviders>(
3636
($search) => Promise.all($search),
3737
null,
3838
[search]
3939
);
4040

41-
export const getTotal: Asyncable<number> = asyncable<[Readable<StructuresByProviders>], number>(
41+
export const getTotal = asyncable<[Readable<StructuresByProviders>], number>(
4242
async ($search) => {
4343
const fetchedProviders: [Types.StructuresResponse[], Types.Provider][] = await Promise.all($search);
4444
const filteredProviders = fetchedProviders.filter(([apis, _provider]: [Types.StructuresResponse[], Types.Provider]) =>

src/types/asyncable.ts

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/views/Providers.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555

5656
<script lang="ts">
5757
let width = 0,
58-
exclusiveId: null = null,
58+
exclusiveId: null,
5959
augmentationMode = false;
6060
6161
function statusing(item: Types.Provider) {

src/views/Result.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
</script>
3939

4040
<script lang="ts">
41-
export let data: {} | null | undefined = null,
41+
export let data: Record<string, never> | null | undefined = null,
4242
windowWidth = 0;
4343
4444
let code: string;

0 commit comments

Comments
 (0)