mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 12:15:51 +00:00
Fix error TS2683
> 'this' implicitly has type 'any' because it does not have a type annotation.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
|
||||
const baseCodec = require('base-x')
|
||||
const {seqEqual, concatArgs} = require('.//utils')
|
||||
const {seqEqual, concatArgs} = require('./utils')
|
||||
|
||||
class Codec {
|
||||
sha256: (bytes: Uint8Array) => Buffer
|
||||
@@ -211,7 +211,7 @@ export function encodeNodePublic(bytes: Buffer): string {
|
||||
// Address === AccountID
|
||||
export function isValidAddress(address: string): boolean {
|
||||
try {
|
||||
this.decodeAccountID(address)
|
||||
decodeAccountID(address)
|
||||
} catch (e) {
|
||||
return false
|
||||
}
|
||||
|
||||
@@ -17,7 +17,8 @@
|
||||
"suppressImplicitAnyIndexErrors": false,
|
||||
"sourceMap": true,
|
||||
"skipLibCheck": true,
|
||||
"declaration": true
|
||||
"declaration": true,
|
||||
"strict": true
|
||||
},
|
||||
"include": [
|
||||
"src/**/*.ts"
|
||||
|
||||
Reference in New Issue
Block a user