Skip to content

Commit

Permalink
Add return types to fix declarations.
Browse files Browse the repository at this point in the history
  • Loading branch information
jjrv committed Jan 15, 2016
1 parent e62936b commit b2aaf43
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/xsd/Exporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ function exportType(type: types.TypeBase, namespace: schema.Namespace) {

/** Export parsed xsd into a simpler internal schema format. */

export function exportNamespace(namespace: Namespace) {
export function exportNamespace(namespace: Namespace): schema.Type {
var outNamespace = schema.Namespace.register(namespace.id, namespace.name);
var doc = outNamespace.doc;

Expand Down
2 changes: 1 addition & 1 deletion src/xsd/Scope.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ console.log('Missing ' + type + ': ' + name.name);
this.parent.setType(type);
}

getType() { return(this.type); }
getType(): types.TypeBase { return(this.type); }

dumpTypes() {
return((this.expose['type'] || {}) as {[name: string]: TypeMember});
Expand Down
2 changes: 1 addition & 1 deletion src/xsd/types/MemberBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class MemberBase extends types.Base {
return(member);
}

getTypes() {
getTypes(): types.TypeBase[] {
var typeList: types.TypeBase[];

// Filter out types of unresolved elements.
Expand Down
2 changes: 1 addition & 1 deletion src/xsd/types/TypeBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class TypeBase extends Base {
this.surrogateKey = TypeBase.nextKey++;
}

getOutType() {
getOutType(): schema.Type {
var outType = this.outType;

if(!outType) {
Expand Down

0 comments on commit b2aaf43

Please sign in to comment.