Skip to content

Commit 45b646b

Browse files
Robin BuschmannRobin Buschmann
authored andcommitted
implementation + tests
1 parent 68cbe04 commit 45b646b

37 files changed

+1325
-0
lines changed

.editorconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
end_of_line = lf
9+
insert_final_newline = true
10+
trim_trailing_whitespace = true
11+
12+
[*.md]
13+
insert_final_newline = false
14+
trim_trailing_whitespace = false

.gitignore

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# mac
2+
*.DS_Store
3+
4+
# ide
5+
.idea
6+
7+
# libraries
8+
node_modules
9+
10+
# testing
11+
coverage
12+
13+
# certificates
14+
certificates/*
15+
16+
# documentation
17+
documentation
18+
19+
# js files
20+
# **/*.js
21+
# **/*.js.map
22+
23+
# Elastic Beanstalk Files
24+
.elasticbeanstalk/*
25+
!.elasticbeanstalk/*.cfg.yml
26+
!.elasticbeanstalk/*.global.yml
27+
28+
# logs
29+
npm-debug.log

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
save-exact=true

annotations/XMLAttribute.js

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

annotations/XMLAttribute.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

annotations/XMLAttribute.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import 'reflect-metadata';
2+
import {XMLAttribute as XMLAttributeModel} from "../models/XMLAttribute";
3+
4+
export function XMLAttribute(target: any, key: string, descriptor?: TypedPropertyDescriptor<any>): void;
5+
export function XMLAttribute(options: any): Function;
6+
export function XMLAttribute(...args: any[]): void|Function {
7+
8+
if (args.length === 1) {
9+
10+
return (target: any, key: string, descriptor?: TypedPropertyDescriptor<any>) => {
11+
12+
return XMLAttributeModel.process(target, key, args[0], descriptor);
13+
};
14+
}
15+
return XMLAttributeModel.process(args[0], args[1], void 0, args[2]);
16+
}

annotations/XMLChild.js

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

annotations/XMLChild.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

annotations/XMLChild.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import 'reflect-metadata';
2+
import {XMLChild as XMLChildModel} from "../models/XMLChild";
3+
4+
export function XMLChild(target: any, key: string, descriptor?: TypedPropertyDescriptor<any>): void;
5+
export function XMLChild(options: any): Function;
6+
export function XMLChild(...args: any[]): void|Function {
7+
8+
if (args.length === 1) {
9+
10+
return (target: any, key: string, descriptor?: TypedPropertyDescriptor<any>) => {
11+
12+
return XMLChildModel.process(target, key, args[0], descriptor);
13+
};
14+
}
15+
return XMLChildModel.process(args[0], args[1], void 0, args[2]);
16+
}

annotations/XMLElement.js

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)