Skip to content

Commit

Permalink
Update dependencies (#689)
Browse files Browse the repository at this point in the history
* update @types

closes #582
closes #598
closes #634
closes #635

* update dependencies

closes #675
closes #679
closes #680

* update typescript dependency to 2.7.1

classes example modified because accessing abstract properties is not allowed in the constructor

closes #654
closes #655
closes #681
closes #687

* add lock file
  • Loading branch information
aciccarello committed Feb 1, 2018
1 parent ebc1cf1 commit 6cfeec0
Show file tree
Hide file tree
Showing 11 changed files with 2,472 additions and 59 deletions.
19 changes: 3 additions & 16 deletions examples/basic/src/classes.ts
Expand Up @@ -55,7 +55,7 @@ export abstract class BaseClass implements INameInterface
/**
* This is a simple public member.
*/
public abstract name:string;
public name:string;

/**
* This is a simple protected member.
Expand Down Expand Up @@ -165,7 +165,7 @@ export abstract class BaseClass implements INameInterface
/**
* @see https://github.com/sebastian-lenz/typedoc/issues/42
*/
public static caTest(originalValues:BaseClass, newRecord:any, fieldNames:string[], mandatoryFields:string[]): string {
public static caTest(originalValues:BaseClass, newRecord: any, fieldNames:string[], mandatoryFields:string[]): string {
var returnval = "";
var updates: string[] = [];
var allFields: string[] = fieldNames;
Expand All @@ -178,7 +178,6 @@ export abstract class BaseClass implements INameInterface
}
}


/**
* This is an internal class, it is not exported.
*/
Expand All @@ -189,7 +188,6 @@ class InternalClass<TTT extends keyof BaseClass>
}
}


/**
* This is a class that extends another class.
*
Expand All @@ -205,15 +203,13 @@ export class SubClassA extends BaseClass implements IPrintNameInterface
*/
public print(value:string):void { }


/**
* @inheritdoc
*/
public printName():void {
this.print(this.getName());
}


/**
* Returns the name. See [[BaseClass.name]].
*
Expand All @@ -233,7 +229,6 @@ export class SubClassA extends BaseClass implements IPrintNameInterface
this.name = value;
}


/**
* Returns the name. See [[BaseClass.name]].
*
Expand All @@ -243,7 +238,6 @@ export class SubClassA extends BaseClass implements IPrintNameInterface
return this.name;
}


/**
* Sets the name. See [[BaseClass.name]].
*
Expand All @@ -259,7 +253,6 @@ export class SubClassA extends BaseClass implements IPrintNameInterface
}
}


/**
* This is a class that extends another class.
*
Expand All @@ -281,7 +274,6 @@ export class SubClassB extends BaseClass
}
}


/**
* This is a generic class.
*
Expand All @@ -291,7 +283,6 @@ export class GenericClass<T extends BaseClass>
{
public value:T;


/**
* Constructor short text.
*
Expand All @@ -304,25 +295,21 @@ export class GenericClass<T extends BaseClass>
constructor(p1, protected p2:T, public p3:number, private p4:number, readonly p5: string) {
}


/**
* @param value [[getValue]] is the counterpart.
*/
public setValue(value:T) {
this.value = value;
}


public getValue():T {
return this.value;
}
}


/**
* This a non generic class derived from a [[GenericClass|generic class]].
*/
export class NonGenericClass extends GenericClass<SubClassB>
{
export class NonGenericClass extends GenericClass<SubClassB> {

}

0 comments on commit 6cfeec0

Please sign in to comment.