Skip to content

Commit

Permalink
docs(typedoc): update typedoc version
Browse files Browse the repository at this point in the history
  • Loading branch information
tuan2311 committed Jan 12, 2021
1 parent 03cef42 commit 78089d5
Show file tree
Hide file tree
Showing 5 changed files with 129 additions and 118 deletions.
210 changes: 110 additions & 100 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@
"tslint": "5.18.0",
"tslint-config-prettier": "1.18.0",
"tslint-plugin-prettier": "2.0.1",
"typedoc": "0.15.0",
"typescript": "3.5.3",
"typedoc": "^0.20.14",
"typescript": "^4.1.3",
"yup": "0.27.0"
},
"files": [
Expand Down
12 changes: 6 additions & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ export function is(schema: Schema<any>): PropertyDecorator {

/**
* Register an array property
* @param typeFunction: a function that returns type of the element
* @param arraySchema: the array schema
* @param elementSchema: an optional object schema
* @param typeFunction a function that returns type of the element
* @param arraySchema the array schema
* @param elementSchema an optional object schema
*/
export function nestedArray(
typeFunction: () => any,
Expand All @@ -96,8 +96,8 @@ export function nestedArray(

/**
* Register an object schema to the given property. Use this when the property type is unknown
* @param typeFunction: a function that returns type of the element
* @param objectSchema: an optional object schema
* @param typeFunction a function that returns type of the element
* @param objectSchema an optional object schema
*/
export function nestedType(
typeFunction: () => any,
Expand All @@ -122,7 +122,7 @@ export function nestedType(

/**
* Register an object schema to the given property. Use this when the property type is known and can be extracted using reflect-metadata
* @param objectSchema: an optional object schema
* @param objectSchema an optional object schema
*
*/
export function nested(objectSchema?: ObjectSchema<any>): PropertyDecorator {
Expand Down
11 changes: 1 addition & 10 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,5 @@
"./dist",
"./test",
"./index.d.ts"
],
"typedocOptions": {
"mode": "modules",
"out": "docs",
"excludePrivate": true,
"excludeProtected": true,
"excludeNotExported": true,
"excludeExternals": true,
"toc": true
}
]
}
10 changes: 10 additions & 0 deletions typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"out": "docs",
"excludePrivate": true,
"excludeProtected": true,
"excludeExternals": true,
"entryPoints": [
"src/index.ts"
],
"toc": true
}

0 comments on commit 78089d5

Please sign in to comment.