ts-toolbelt
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -15,3 +15,4 @@ import { Prev } from '../Iteration/Prev'; | ||
1: Prev<I>; | ||
}[[N] extends [never] ? 1 : 0]; | ||
2: string; | ||
}[[N] extends [never] ? 1 : string extends N ? 2 : 0]; | ||
declare type MaxNegative<N extends Nbr, I extends Iteration = IterationOf<'0'>> = { | ||
@@ -18,0 +19,0 @@ 0: MaxNegative<Exclude<N, Key<I>>, Prev<I>>; |
@@ -19,3 +19,4 @@ import { IterationOf } from '../Iteration/IterationOf'; | ||
1: Next<I>; | ||
}[[N] extends [never] ? 1 : 0]; | ||
2: string; | ||
}[[N] extends [never] ? 1 : string extends N ? 2 : 0]; | ||
export declare type _Min<N extends Iteration> = _IsPositive<N> extends true ? MinPositive<Key<N>> : MinNegative<Exclude<Key<N>, Numbers['string']['+']>>; | ||
@@ -22,0 +23,0 @@ /** Get the smallest **number** within an **union** |
{ | ||
"name": "ts-toolbelt", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"license": "Apache-2.0", | ||
@@ -11,2 +11,3 @@ "author": "Pierre-Antoine Mills", | ||
"safe", | ||
"typesafe", | ||
"typescript" | ||
@@ -22,10 +23,10 @@ ], | ||
"scripts": { | ||
"build:types": "tsc --emitDeclarationOnly", | ||
"build:docs": "typedoc --out docs ./src/ --theme ../eledoc/bin/default/ && touch ./docs/.nojekyll", | ||
"setup:dev": "npm install --only=dev", | ||
"git:push": "git add docs/ && git commit -am 'release' && git push origin master", | ||
"prepublish": "rm -fr out && npm run build:types && npm run build:docs && npm run git:push" | ||
"build:types": "rm -fr out && tsc --emitDeclarationOnly", | ||
"build:docs": "typedoc --out docs ./src/ --theme ../eledoc/bin/default/ && touch ./docs/.nojekyll", | ||
"setup:dev": "npm install --only=dev", | ||
"git:push": "git add docs/ && git commit -am 'release' && git push origin master", | ||
"prepublishOnly": "npm run build:types && npm run build:docs && npm run git:push" | ||
}, | ||
"devDependencies": { | ||
"@typescript-eslint/parser": "^1.9.0", | ||
"@typescript-eslint/parser": "^1.10.2", | ||
"eledoc": "^0.0.5", | ||
@@ -36,4 +37,5 @@ "eslint": "^5.16.0", | ||
"ts-node": "^8.2.0", | ||
"tslib": "^1.10.0", | ||
"typedoc": "^0.14.2", | ||
"typescript": "^3.6.0-dev.20190607" | ||
"typescript": "next" | ||
}, | ||
@@ -40,0 +42,0 @@ "peerDependencies": { |
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
108663
2353
9