Skip to content

Commit d5a4751

Browse files
fix spaces in type defs
1 parent c919212 commit d5a4751

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/dao.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,12 @@ export class DAO implements IStateful<IDAOState> {
134134
return Vote.search(this.context, options)
135135
}
136136

137-
public stakes(options: IStakeQueryOptions = {}): Observable < IStake[] > {
137+
public stakes(options: IStakeQueryOptions = {}): Observable<IStake[]> {
138138
options.dao = this.address
139139
return Stake.search(this.context, options)
140140
}
141141

142-
public ethBalance(): Observable < number > {
142+
public ethBalance(): Observable<number> {
143143
return this.context.getBalance(this.address)
144144
}
145145
}

src/proposal.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export class Proposal implements IStateful<IProposalState> {
9999
/**
100100
* `state` is an observable of the proposal state
101101
*/
102-
public state: Observable < IProposalState > = of()
102+
public state: Observable<IProposalState> = of()
103103
public context: Arc
104104

105105
constructor(public id: string, context: Arc) {
@@ -206,33 +206,33 @@ constructor(public id: string, context: Arc) {
206206

207207
// Note that although this is implemented as an observable, the value is actually static
208208
// and will never change.
209-
public dao(): Observable < DAO > {
209+
public dao(): Observable<DAO> {
210210
return this.state.pipe(
211211
map((state) => {
212212
return state.dao
213213
})
214214
)
215215
}
216216

217-
public votes(options: IVoteQueryOptions = {}): Observable < IVote[] > {
217+
public votes(options: IVoteQueryOptions = {}): Observable<IVote[]> {
218218
options.proposal = this.id
219219
return Vote.search(this.context, options)
220220
}
221221

222-
public vote(outcome: ProposalOutcome): Operation < void > {
222+
public vote(outcome: ProposalOutcome): Operation<void> {
223223
throw new Error('not implemented')
224224
}
225225

226-
public stakes(options: IStakeQueryOptions = {}): Observable < IStake[] > {
226+
public stakes(options: IStakeQueryOptions = {}): Observable<IStake[]> {
227227
options.proposal = this.id
228228
return Stake.search(this.context, options)
229229
}
230230

231-
public stake(outcome: ProposalOutcome, amount: number): Operation < void > {
231+
public stake(outcome: ProposalOutcome, amount: number): Operation<void> {
232232
throw new Error('not implemented')
233233
}
234234

235-
public rewards(options: IRewardQueryOptions = {}): Observable < IRewardState[] > {
235+
public rewards(options: IRewardQueryOptions = {}): Observable<IRewardState[]> {
236236
options.proposal = this.id
237237
return Reward.search(this.context, options)
238238
}

0 commit comments

Comments
 (0)