Skip to content

Commit

Permalink
types
Browse files Browse the repository at this point in the history
  • Loading branch information
Mau Zsofia Abraham committed Sep 27, 2024
1 parent 6068849 commit 886a8c0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion components/explore-samples-window-content.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const ids = computed(() => {
: simpleItems.value
.filter((item) => params.value.dataType === item.dataType)
.filter((item) => {
if (!params.value.region && !params.value.place) return true;
if (!params.value.region && !params.value.settlement) return true;
const filter_results = filters.map((key) => {
if (params.value[key]) return params.value[key] === item.place[key];
return null;
Expand Down
5 changes: 5 additions & 0 deletions types/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,3 +266,8 @@ export const FeatureCollectionSchema = z.object({
features: z.array(GeoFeatureSchema),
});
export type FeatureCollectionType = z.infer<typeof FeatureCollectionSchema>;

export interface VicavHTTPError extends Error {
status?: number;
error?: Record<string, string>;
}
2 changes: 2 additions & 0 deletions types/teiCorpus.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ export type simpleTEIMetadata = {
dataType: DataTypesEnum;
secondaryDataType: string;
resp: string;
pubDate: string | TeiDate;
recordingDate?: string | TeiDate;
place: {
settlement: string;
country: string;
Expand Down

0 comments on commit 886a8c0

Please sign in to comment.