Skip to content

Commit 55f1870

Browse files
committed
fix: rename type
1 parent 7ecdcaa commit 55f1870

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lightweight/index.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ type MqlErrorGeneratedProps = {
191191
name: string
192192
}
193193

194-
export type MqlError = {
194+
export type MqlErrorProps = {
195195
code: string
196196
status: MqlStatus
197197
message: string
@@ -202,10 +202,10 @@ export type MqlError = {
202202
url?: string
203203
}
204204

205-
export type MqlErrorProps = MqlError & MqlErrorGeneratedProps
205+
export type MqlError = MqlErrorProps & MqlErrorGeneratedProps
206206

207207
export declare class MicrolinkError extends Error {
208-
constructor(props: MqlError)
208+
constructor(props: MqlErrorProps)
209209
readonly code: string
210210
readonly status: MqlStatus
211211
readonly message: string
@@ -234,7 +234,7 @@ interface mql {
234234
) => Promise<HTTPResponseRaw>
235235
extend: (gotOpts?: object) => mql
236236
stream: (input: RequestInfo, init?: RequestInit) => ReadableStream
237-
MicrolinkError: new (props: object) => MqlError
237+
MicrolinkError: new (props: object) => MqlErrorProps
238238
version: string
239239
}
240240

0 commit comments

Comments
 (0)