Skip to content

Commit c838a05

Browse files
authored
Merge pull request #55 from Sv443-Network/ver/1.18.0
2 parents 91f0132 + 20785c7 commit c838a05

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

SvCoreLib.d.ts

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1149,6 +1149,7 @@ declare module "svcorelib" {
11491149
*/
11501150
class SCLError extends Error
11511151
{
1152+
constructor(message?: string, options?: any)
11521153
/** A Date instance set to the exact time this Error instance was created */
11531154
date: Date;
11541155
}
@@ -1157,37 +1158,49 @@ declare module "svcorelib" {
11571158
* 🔹 This error gets thrown if an invalid path was provided 🔹
11581159
* @since 1.12.0
11591160
*/
1160-
class InvalidPathError extends SCLError {}
1161+
class InvalidPathError extends SCLError {
1162+
constructor(message?: string, options?: any)
1163+
}
11611164

11621165
/**
11631166
* 🔹 This error gets thrown if the provided path is not a folder 🔹
11641167
* @since 1.12.0
11651168
*/
1166-
class NotAFolderError extends SCLError {}
1169+
class NotAFolderError extends SCLError {
1170+
constructor(message?: string, options?: any)
1171+
}
11671172

11681173
/**
11691174
* 🔹 This error gets thrown if an invalid glob pattern was provided 🔹
11701175
* @since 1.12.0
11711176
*/
1172-
class PatternInvalidError extends SCLError {}
1177+
class PatternInvalidError extends SCLError {
1178+
constructor(message?: string, options?: any)
1179+
}
11731180

11741181
/**
11751182
* 🔹 This error gets thrown when the terminal that the process runs in doesn't provide a stdin channel 🔹
11761183
* @since 1.12.0
11771184
*/
1178-
class NoStdinError extends SCLError {}
1185+
class NoStdinError extends SCLError {
1186+
constructor(message?: string, options?: any)
1187+
}
11791188

11801189
/**
11811190
* 🔹 This error gets thrown when an invalid [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) was provided. 🔹
11821191
* @since 1.12.0
11831192
*/
1184-
class InvalidMimeTypeError extends SCLError {}
1193+
class InvalidMimeTypeError extends SCLError {
1194+
constructor(message?: string, options?: any)
1195+
}
11851196

11861197
/**
11871198
* 🔹 This error gets thrown when a provided SQL connection was not established yet or has ended 🔹
11881199
* @since 1.12.0
11891200
*/
1190-
class SqlConnectionNotEstablishedError extends SCLError {}
1201+
class SqlConnectionNotEstablishedError extends SCLError {
1202+
constructor(message?: string, options?: any)
1203+
}
11911204
}
11921205

11931206
//#MARKER objects

0 commit comments

Comments
 (0)