fix(core): update
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
import * as plugins from './smartpersona.plugins';
|
||||
|
||||
export let standardExport = 'Hi there! :) This is an exported string';
|
||||
export * from './smartpersona.classes.company';
|
||||
export * from './smartpersona.classes.person';
|
||||
export * from './smartpersona.classes.role';
|
||||
|
23
ts/smartpersona.classes.company.ts
Normal file
23
ts/smartpersona.classes.company.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import * as plugins from './smartpersona.plugins';
|
||||
import { foldDec } from '@pushrocks/smartjson';
|
||||
|
||||
export class Company extends plugins.smartjson.Smartjson implements plugins.tsclass.ICompany {
|
||||
@foldDec()
|
||||
public foundedDate: plugins.tsclass.IDate;
|
||||
|
||||
@foldDec()
|
||||
public closedDate: plugins.tsclass.IDate;
|
||||
|
||||
@foldDec()
|
||||
public name: string;
|
||||
|
||||
@foldDec()
|
||||
public status: plugins.tsclass.TCompanyStatus;
|
||||
|
||||
@foldDec()
|
||||
public contact: plugins.tsclass.IContact;
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
}
|
@@ -0,0 +1,5 @@
|
||||
import * as plugins from './smartpersona.plugins';
|
||||
|
||||
export class Person extends plugins.smartjson.Smartjson implements plugins.tsclass.IPerson {
|
||||
|
||||
}
|
||||
|
@@ -1 +1,5 @@
|
||||
import * as plugins from './smartpersona.plugins';
|
||||
|
||||
export class Role {
|
||||
|
||||
};
|
@@ -1,5 +1,13 @@
|
||||
// @tsclass scope
|
||||
import * as tsclass from '@tsclass/tsclass';
|
||||
|
||||
export {
|
||||
tsclass
|
||||
};
|
||||
};
|
||||
|
||||
// @pushrocks scope
|
||||
import * as smartjson from '@pushrocks/smartjson';
|
||||
|
||||
export {
|
||||
smartjson
|
||||
};
|
||||
|
16
ts/tsconfig.json
Normal file
16
ts/tsconfig.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "es2017",
|
||||
"module": "es2015",
|
||||
"moduleResolution": "node",
|
||||
"lib": ["es2017", "dom"],
|
||||
"declaration": true,
|
||||
"inlineSources": true,
|
||||
"inlineSourceMap": true,
|
||||
"noUnusedLocals": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"outDir": "dist/",
|
||||
"skipLibCheck": true,
|
||||
"experimentalDecorators": true
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user