Skip to content

Commit 6ff72ca

Browse files
Robin BuschmannRobin Buschmann
Robin Buschmann
authored and
Robin Buschmann
committedDec 6, 2016
d.ts files added
1 parent e5e1e46 commit 6ff72ca

8 files changed

+51
-0
lines changed
 

‎annotations/XMLAttribute.d.ts

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import 'reflect-metadata';
2+
export declare function XMLAttribute(target: any, key: string, descriptor?: TypedPropertyDescriptor<any>): void;
3+
export declare function XMLAttribute(options: any): Function;

‎annotations/XMLChild.d.ts

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import 'reflect-metadata';
2+
export declare function XMLChild(target: any, key: string, descriptor?: TypedPropertyDescriptor<any>): void;
3+
export declare function XMLChild(options: any): Function;

‎annotations/XMLElement.d.ts

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import 'reflect-metadata';
2+
export declare function XMLElement(options: any): Function;

‎models/XMLAttribute.d.ts

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export declare class XMLAttribute {
2+
private options;
3+
private name;
4+
static process(target: any, key: string, options?: any, descriptor?: TypedPropertyDescriptor<any>): void;
5+
setSchema(target: any, entity: any): void;
6+
private constructor(options);
7+
}

‎models/XMLChild.d.ts

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import 'es6-shim';
2+
export declare class XMLChild {
3+
private options;
4+
private name;
5+
static process(target: any, key: string, options?: any, descriptor?: TypedPropertyDescriptor<any>): void;
6+
setSchema(target: any, parentEntity: any, isAsync?: boolean): any;
7+
private constructor(options);
8+
private resolveImplicitStructure(structure, target, schema);
9+
private getImplicitNodeTree(treeString);
10+
private getAttributes(attributeString);
11+
}

‎models/XMLElement.d.ts

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/// <reference types="bluebird" />
2+
import 'reflect-metadata';
3+
import * as Promise from "bluebird";
4+
import { XMLChild } from "./XMLChild";
5+
import { XMLAttribute } from "./XMLAttribute";
6+
export declare class XMLElement {
7+
private attributes;
8+
private children;
9+
private root?;
10+
static serialize(entity: any): string;
11+
static serialize(root: string, entity: any): string;
12+
static getSchema(entities: any[]): any;
13+
static getSchema(entity: any): any;
14+
static getSchemaAsync(entities: any[]): Promise<any>;
15+
static getSchemaAsync(entity: any): Promise<any>;
16+
static getXMLElement(targetClass: any, createIfNotExist?: boolean): XMLElement;
17+
static process(targetClass: any, options: any): void;
18+
private static processSchema(entity, isAsync);
19+
addAttribute(attribute: XMLAttribute): void;
20+
addChild(child: XMLChild): void;
21+
private getSchema(entity, isAsync);
22+
}

‎tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"target": "es5",
55
"experimentalDecorators": true,
66
"emitDecoratorMetadata": true,
7+
"declaration": true,
78
"sourceMap": true,
89
"skipLibCheck": true,
910
"pretty": true

‎utils.d.ts

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export declare const ATTRIBUTE_PROPERTY: string;
2+
export declare function ns(namepsace: string, value: string): string;

0 commit comments

Comments
 (0)
Please sign in to comment.