@augment-vir/core 31.23.4 → 31.24.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -531,7 +531,23 @@ export type SuccessHttpStatusCategories = Exclude<HttpStatusCategory, ErrorHttpS
|
|
|
531
531
|
* @category Package : @augment-vir/common
|
|
532
532
|
* @package [`@augment-vir/common`](https://www.npmjs.com/package/@augment-vir/common)
|
|
533
533
|
*/
|
|
534
|
-
export declare function isErrorHttpStatus(input: HttpStatus): input is
|
|
534
|
+
export declare function isErrorHttpStatus(input: HttpStatus): input is ErrorHttpStatus;
|
|
535
|
+
/**
|
|
536
|
+
* All error HTTP statuses.
|
|
537
|
+
*
|
|
538
|
+
* @category HTTP
|
|
539
|
+
* @category Package : @augment-vir/common
|
|
540
|
+
* @package [`@augment-vir/common`](https://www.npmjs.com/package/@augment-vir/common)
|
|
541
|
+
*/
|
|
542
|
+
export type ErrorHttpStatus = ExtractKeysWithMatchingValues<typeof httpStatusToCategory, ErrorHttpStatusCategories>;
|
|
543
|
+
/**
|
|
544
|
+
* All success HTTP statuses.
|
|
545
|
+
*
|
|
546
|
+
* @category HTTP
|
|
547
|
+
* @category Package : @augment-vir/common
|
|
548
|
+
* @package [`@augment-vir/common`](https://www.npmjs.com/package/@augment-vir/common)
|
|
549
|
+
*/
|
|
550
|
+
export type SuccessHttpStatus = ExtractKeysWithMatchingValues<typeof httpStatusToCategory, SuccessHttpStatusCategories>;
|
|
535
551
|
/**
|
|
536
552
|
* A type that maps the given {@link HttpStatus} type parameter to its respective
|
|
537
553
|
* {@link HttpStatusCategory}.
|