mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
no interface
This commit is contained in:
parent
034fa5e7a9
commit
6d2033abd2
@ -1,18 +1,16 @@
|
|||||||
import { ObjectType, Field, Int } from 'type-graphql'
|
import { ObjectType, Field, Int } from 'type-graphql'
|
||||||
import Decimal from 'decimal.js-light'
|
import Decimal from 'decimal.js-light'
|
||||||
|
|
||||||
interface DecayInterface {
|
@ObjectType()
|
||||||
|
export class Decay {
|
||||||
|
constructor(data: {
|
||||||
balance: Decimal
|
balance: Decimal
|
||||||
decay: Decimal
|
decay: Decimal
|
||||||
roundedDecay: Decimal
|
roundedDecay: Decimal
|
||||||
start: Date | null
|
start: Date | null
|
||||||
end: Date | null
|
end: Date | null
|
||||||
duration: number | null
|
duration: number | null
|
||||||
}
|
}) {
|
||||||
|
|
||||||
@ObjectType()
|
|
||||||
export class Decay {
|
|
||||||
constructor(data: DecayInterface) {
|
|
||||||
this.balance = data.balance
|
this.balance = data.balance
|
||||||
this.decay = data.decay
|
this.decay = data.decay
|
||||||
this.roundedDecay = data.roundedDecay
|
this.roundedDecay = data.roundedDecay
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user