@types/statuses
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -8,3 +8,3 @@ // Type definitions for statuses 2.0 | ||
type NumericAscii = '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '0'; | ||
type NumericAscii = "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "0"; | ||
type NonNumericAscii<S> = S extends `${NumericAscii}` ? never : any; | ||
@@ -33,7 +33,5 @@ | ||
declare namespace status { | ||
type Result<S extends string> = S extends IsNumericString<S> | ||
? string | ||
: S extends IsNonNumericString<S> | ||
? number | ||
type Result<S extends string> = S extends IsNumericString<S> ? string | ||
: S extends IsNonNumericString<S> ? number | ||
: string | number; | ||
} |
{ | ||
"name": "@types/statuses", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "TypeScript definitions for statuses", | ||
@@ -28,4 +28,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/statuses", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "41283cc345cff03ce063d54e2f7f471529aa1782c9ff19057d84d57412d05694", | ||
"typesPublisherContentHash": "7186665828f7d45e070e5a24e31407ab14f52d7a6a235c190c3e74bcb682e89e", | ||
"typeScriptVersion": "4.7" | ||
} |
@@ -18,3 +18,3 @@ # Installation | ||
type NumericAscii = '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '0'; | ||
type NumericAscii = "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "0"; | ||
type NonNumericAscii<S> = S extends `${NumericAscii}` ? never : any; | ||
@@ -43,6 +43,4 @@ | ||
declare namespace status { | ||
type Result<S extends string> = S extends IsNumericString<S> | ||
? string | ||
: S extends IsNonNumericString<S> | ||
? number | ||
type Result<S extends string> = S extends IsNumericString<S> ? string | ||
: S extends IsNonNumericString<S> ? number | ||
: string | number; | ||
@@ -54,3 +52,3 @@ } | ||
### Additional Details | ||
* Last updated: Thu, 12 Jan 2023 00:02:46 GMT | ||
* Last updated: Mon, 25 Sep 2023 13:39:06 GMT | ||
* Dependencies: none | ||
@@ -57,0 +55,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5294
27
56