Skip to content

Commit bc440e9

Browse files
committed
Fix typedoc build
1 parent a939a2f commit bc440e9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"docs-publish": "yarn run docs && touch docs/.nojekyll && gh-pages -d docs -t",
1616
"build": "rimraf lib && rimraf lib-umd && yarn run lint && tsc && yarn test && webpack && size-limit",
1717
"build-prod": "yarn run build && yarn run docs-publish",
18-
"prepublishOnly": "yarn run build"
18+
"prepublishOnly": "yarn run build-prod"
1919
},
2020
"author": "Benjamin Winterberg",
2121
"homepage": "http://winterbe.com",

src/createComparatorFactory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function compareByDescending<T>(keyOrSelector: any): Comparator<T> {
5858
function asSelector<T>(keyOrSelector: (item: T) => any | string): (item: T) => any {
5959
return typeof keyOrSelector === "function"
6060
? keyOrSelector
61-
: (item: T) => (item as any)[keyOrSelector];
61+
: (item: T) => (item as any)[keyOrSelector as string];
6262
}
6363

6464
function naturalCompare<T>(a: T, b: T): number {

0 commit comments

Comments
 (0)