@brillout/docpress 0.1.6 → 0.1.8
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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brillout/docpress",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"exports": {
|
|
5
5
|
".": "./src/index.ts",
|
|
6
6
|
"./client/initFeatureList": {
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"react-dom": "^18.1.0",
|
|
51
51
|
"rollup": "^2.74.1",
|
|
52
52
|
"tsup": "^6.0.1",
|
|
53
|
-
"typescript": "^4.
|
|
53
|
+
"typescript": "^4.8.4",
|
|
54
54
|
"docpress": "link:"
|
|
55
55
|
},
|
|
56
56
|
"bin": {
|
|
@@ -64,7 +64,7 @@ function getTitle({
|
|
|
64
64
|
if (!sectionTitle) {
|
|
65
65
|
assertUsage(
|
|
66
66
|
!doNotInferSectionTitle,
|
|
67
|
-
`Link
|
|
67
|
+
`Page section title not found for <Link href="\`${href}\`" doNotInferSectionTitle={true} />.`
|
|
68
68
|
)
|
|
69
69
|
sectionTitle = determineSectionTitle(href, pageContext.config.titleNormalCase)
|
|
70
70
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export { objectAssign }
|
|
2
2
|
|
|
3
3
|
// Same as `Object.assign()` but with type inference
|
|
4
|
-
function objectAssign<Obj, ObjAddendum>(
|
|
4
|
+
function objectAssign<Obj extends Object, ObjAddendum>(
|
|
5
|
+
obj: Obj,
|
|
6
|
+
objAddendum: ObjAddendum
|
|
7
|
+
): asserts obj is Obj & ObjAddendum {
|
|
5
8
|
Object.assign(obj, objAddendum)
|
|
6
9
|
}
|