-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fixed lint warning in chaincode * Fixed linting warnings in typescript_app * Fixed lint warning due to prettier auto save Signed-off-by: Amarbir Singh <amarbir1800@gmail.com> Lint warning fixes (#2) * Fixed lint warning in chaincode * Fixed linting warnings in typescript_app * Fixed lint warning due to prettier auto save * Fixed no-return-type lint warnings Signed-off-by: Amarbir Singh <amarbir1800@gmail.com> Update emissionsRecordContract.ts Bug fix while merge request Signed-off-by: Amarbir Singh <amarbir1800@gmail.com> Typo fix Signed-off-by: Amarbir Singh <amarbir1800@gmail.com> Fixed two more typos Signed-off-by: Amarbir Singh <amarbir1800@gmail.com>
- Loading branch information
Showing
8 changed files
with
51 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
utility-emissions-channel/typescript_app/src/service/input.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
export interface Input { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
A-5ingh
Author
Contributor
|
||
body: any; | ||
header: any; | ||
query: any; | ||
body: Record<string, string>; | ||
header: Record<string, string>; | ||
query: Record<string, string>; | ||
file?: Buffer; | ||
params?: any; | ||
params?: Record<string, string>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 comment
on commit afb687e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@A-5ingh
This commit is causing build errors on my machine.
src/controllers/registerEnroll.ts:8:13 - error TS2322: Type 'IncomingHttpHeaders' is not assignable to type 'Record<string, string>'.
'string' index signatures are incompatible.
Type 'string | string[]' is not assignable to type 'string'.
Type 'string[]' is not assignable to type 'string'.
8 header: req.headers,
~~~~~~
src/service/input.ts:3:5
3 header: Record<string, string>;
~~~~~~
The expected type comes from property 'header' which is declared here on type 'Input'