Skip to content

Commit f45d8e4

Browse files
docs(typedoc): Ignore internal files
- Don't show `parse` and `next` functions in the docs as they might change in the future. - Add summary to main package entry point.
1 parent 5901a23 commit f45d8e4

File tree

4 files changed

+17
-2
lines changed

4 files changed

+17
-2
lines changed

cron-fns.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Main entry point for the package which exposes the public components.
3+
* @packageDocumentation
4+
*/
5+
16
export * from "./Cron";
27
export * from "./nextCronOccurrence";
38
export * from "./nextCronOccurrences";

next.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
import { Field, parse, Schedule } from "./parse";
1+
/**
2+
* @packageDocumentation
3+
* @ignore
4+
*/
5+
6+
import { Field, Schedule } from "./parse";
27

38
function findNext(
49
current: number,

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"clean": "rimraf *.d.ts *.js *.map tests/*.d.ts tests/*.js tests/*.map *.tgz coverage documentation",
2525
"build": "tsc",
2626
"test": "jest",
27-
"docs": "typedoc --out ./documentation/ --stripInternal ./cron-fns.ts",
27+
"doc": "typedoc --out ./documentation/ ./*.ts",
2828
"commit": "cz",
2929
"semantic-release": "semantic-release"
3030
},

parse.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* @packageDocumentation
3+
* @ignore
4+
*/
5+
16
/** @name Schedule
27
* @description Any field which is undefined is assumed to be unconstrained.
38
*/

0 commit comments

Comments
 (0)