Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(main): make compatible with angular latest version 11.0.3 #39

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
build(main): fix method type declaration of an object
  • Loading branch information
Serkan KONAKCI committed Jan 20, 2021
commit bff54df08e4808fb7a3fd9747fd353cbaa5b34d8
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# Akveo Parser Documentation Tool

## This tool helps us in creating incredible documentation for our projects!
This package is an extended version of Akveo doc-prsr, for Typescript. It contains interface, type, and other declarations for objects and methods.

### Usage: prsr [options]

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@logo-software/doc-prsr",
"version": "2.2.44",
"version": "2.2.45",
"description": "",
"main": "./dist/index.js",
"typings": "./dist/index.d.ts",
Expand All @@ -13,7 +13,7 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/akveo/doc-prsr.git"
"url": "git+https://github.com/logo-group/doc-prsr.git"
},
"author": "Akveo",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions src/typedoc.parser/parsers/methods.parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,10 @@ export class MethodsParser {
const indexSignatureObject: any = {};
const indexSignatureObjectHelper: any = {};
const item = obj[CO.type][CO.declaration][CO.indexSignature];
item[CO.parameters].forEach((itemsItem: any) => {
item[0][CO.parameters].forEach((itemsItem: any) => {
indexSignatureObjectHelper[itemsItem[CO.name]] = itemsItem[CO.type][CO.name];
indexSignatureObject['[' + JSON.stringify(indexSignatureObjectHelper)
.replace(/[{}]+/g, '') + ']'] = item[CO.type][CO.name];
.replace(/[{}]+/g, '') + ']'] = item[0][CO.type][CO.name];
});

return JSON.stringify(indexSignatureObject)
Expand Down