This repository was archived by the owner on May 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 38
Use TS strict mode #52
Merged
Merged
Changes from 3 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
1fdbcfa
Use strict in TS
amaury1093 71aa357
Remove tslint prettier
amaury1093 916211f
Fix types using strict in abi
amaury1093 4a961b9
Fix ts in abi
amaury1093 c0d7d86
Fix ts in contracts
amaury1093 45e06ef
Fix lint in electron
amaury1093 de8eedd
Fix lint in electron
amaury1093 ddafdf6
Fix ts in light.js
amaury1093 ebe4033
Fix lint
amaury1093 add8558
Fix bug in light.js, dependsOn and frequency
amaury1093 d947540
encodeToken required argument
amaury1093 0ec6835
Fix bug resultIcon
amaury1093 222a64c
Encode required arg
amaury1093 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -24,7 +24,7 @@ import { | |
| } from '../types'; | ||
|
|
||
| class Encoder { | ||
| static encode (tokens: Token[]) { | ||
| static encode (tokens?: Token[]) { | ||
| if (!isArray(tokens)) { | ||
| throw new Error('tokens should be array of Token'); | ||
| } | ||
|
|
@@ -44,8 +44,8 @@ class Encoder { | |
| return `${inits}${closings}`; | ||
| } | ||
|
|
||
| static encodeToken (token: Token, index = 0): Mediate { | ||
| if (!isInstanceOf(token, Token)) { | ||
| static encodeToken (token?: Token, index = 0): Mediate { | ||
|
||
| if (!token || !isInstanceOf(token, Token)) { | ||
| throw new Error('token should be instanceof Token'); | ||
| } | ||
|
|
||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
also here