Skip to content

Commit f6166ce

Browse files
committed
1 parent 9a350bb commit f6166ce

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

src/hydra/fetchJsonLd.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import type { RequestInitExtended } from "./types.js";
44
const jsonLdMimeType = "application/ld+json";
55
const jsonProblemMimeType = "application/problem+json";
66

7-
export type RejectedResponseDocument = {
7+
export interface RejectedResponseDocument {
88
response: Response;
9-
};
9+
}
1010

11-
export type EmptyResponseDocument = {
11+
export interface EmptyResponseDocument {
1212
response: Response;
13-
};
13+
}
1414

1515
export interface ResponseDocument extends RemoteDocument {
1616
response: Response;

src/hydra/types.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ export interface RequestInitExtended extends Omit<RequestInit, "headers"> {
22
headers?: HeadersInit | (() => HeadersInit);
33
}
44

5-
export type IriTemplateMapping = {
5+
export interface IriTemplateMapping {
66
"@type": "IriTemplateMapping";
77
variable: "string";
88
property: string | null;
99
required: boolean;
10-
};
10+
}
1111

12-
export type ExpandedOperation = {
12+
export interface ExpandedOperation {
1313
"@type": ["http://www.w3.org/ns/hydra/core#Operation"];
1414
"http://www.w3.org/2000/01/rdf-schema#label": [
1515
{
@@ -41,9 +41,9 @@ export type ExpandedOperation = {
4141
"@value": boolean;
4242
},
4343
];
44-
};
44+
}
4545

46-
export type ExpandedRdfProperty = {
46+
export interface ExpandedRdfProperty {
4747
"@id": string;
4848
"@type": [
4949
| "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"
@@ -92,9 +92,9 @@ export type ExpandedRdfProperty = {
9292
"@value": number;
9393
},
9494
];
95-
};
95+
}
9696

97-
export type ExpandedSupportedProperty = {
97+
export interface ExpandedSupportedProperty {
9898
"@type": ["http://www.w3.org/ns/hydra/core#SupportedProperty"];
9999
"http://www.w3.org/ns/hydra/core#title": [
100100
{
@@ -127,9 +127,9 @@ export type ExpandedSupportedProperty = {
127127
"@value": boolean;
128128
},
129129
];
130-
};
130+
}
131131

132-
export type ExpandedClass = {
132+
export interface ExpandedClass {
133133
"@id": string;
134134
"@type": ["http://www.w3.org/ns/hydra/core#Class"];
135135
"http://www.w3.org/2000/01/rdf-schema#label"?: [
@@ -159,9 +159,9 @@ export type ExpandedClass = {
159159
"@value": boolean;
160160
},
161161
];
162-
};
162+
}
163163

164-
export type ExpandedDoc = {
164+
export interface ExpandedDoc {
165165
"@id": string;
166166
"@type": ["http://www.w3.org/ns/hydra/core#ApiDocumentation"];
167167
"http://www.w3.org/ns/hydra/core#title": [
@@ -180,9 +180,9 @@ export type ExpandedDoc = {
180180
},
181181
];
182182
"http://www.w3.org/ns/hydra/core#supportedClass": ExpandedClass[];
183-
};
183+
}
184184

185-
export type Entrypoint = {
185+
export interface Entrypoint {
186186
"@id": string;
187187
"@type": [string];
188188
[key: string]:
@@ -193,4 +193,4 @@ export type Entrypoint = {
193193
]
194194
| string
195195
| [string];
196-
};
196+
}

0 commit comments

Comments
 (0)