Compare commits

...

2 Commits

Author SHA1 Message Date
65d87fdefb 1.0.33 2018-07-22 18:19:47 +02:00
4a54935521 fix(core): add ICheckingAccount, IPayment, TCurrency 2018-07-22 18:19:47 +02:00
6 changed files with 21 additions and 3 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "@tsclass/tsclass",
"version": "1.0.32",
"version": "1.0.33",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "@tsclass/tsclass",
"version": "1.0.32",
"version": "1.0.33",
"private": false,
"description": "common classes for TypeScript",
"main": "dist/index.js",

View File

@ -0,0 +1,8 @@
import { TCurrency } from "./currency";
import { IPayment } from "./payment";
export interface ICheckingAccount {
name: string;
currency: TCurrency;
payment: IPayment[];
}

1
ts/finance/currency.ts Normal file
View File

@ -0,0 +1 @@
export type TCurrency = 'eur' | 'usd' | 'sek'

4
ts/finance/payment.ts Normal file
View File

@ -0,0 +1,4 @@
export interface IPayment {
amount: number;
date: Date;
}

View File

@ -2,8 +2,13 @@
export * from './business/address';
export * from './business/company';
export * from './business/contact';
export * from './finance/invoice';
// Finance
export * from './finance/checkingaccount';
export * from './finance/currency';
export * from './finance/expense';
export * from './finance/invoice';
export * from './finance/payment'
// Cloud
export * from './cloud/dns';