mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-27 06:22:55 +08:00
Update tslint rules
This commit is contained in:
920
types/stellar-sdk/index.d.ts
vendored
920
types/stellar-sdk/index.d.ts
vendored
File diff suppressed because it is too large
Load Diff
@@ -1,9 +1,9 @@
|
||||
import * as StellarSdk from 'stellar-sdk'
|
||||
import * as StellarSdk from 'stellar-sdk';
|
||||
|
||||
const sourceKey = StellarSdk.Keypair.random() // $ExpectType Keypair
|
||||
const destKey = StellarSdk.Keypair.random()
|
||||
const account = new StellarSdk.Account(sourceKey.publicKey(), 1)
|
||||
const sourceKey = StellarSdk.Keypair.random(); // $ExpectType Keypair
|
||||
const destKey = StellarSdk.Keypair.random();
|
||||
const account = new StellarSdk.Account(sourceKey.publicKey(), 1);
|
||||
const transaction = new StellarSdk.TransactionBuilder(account)
|
||||
.addOperation(StellarSdk.Operation.accountMerge({destination: destKey.publicKey()}))
|
||||
.build() // $ExpectType () => Transaction
|
||||
transaction // $ExpectType Transaction
|
||||
.build(); // $ExpectType () => Transaction
|
||||
transaction; // $ExpectType Transaction
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json",
|
||||
"rules": {
|
||||
"quotemark": [true, "single"],
|
||||
"semicolon": [true, "never"]
|
||||
}
|
||||
"extends": "dtslint/dt.json"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user