Skip to content

Commit ba9416f

Browse files
author
William Duncan
committed
make DocShema Entry class abstract
1 parent dc55c98 commit ba9416f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

gen/DocSchema.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ interface DocSchema {
77
}
88

99
namespace DocSchema {
10-
export class Entry {
10+
export abstract class Entry {
1111
public name: string;
1212
public readonly type: string;
1313
public readonly typeName?: string;
1414
public readonly isStatic?: true;
1515

16-
constructor(name: string, type: string, isStatic?: true, alwaysTypeName?: true) {
16+
protected constructor(name: string, type: string, isStatic?: true, alwaysTypeName?: true) {
1717
this.name = name;
1818
this.type = type;
1919
this.isStatic = isStatic;
@@ -28,9 +28,7 @@ namespace DocSchema {
2828
return this.displayName.toLowerCase().replace(/[^a-z\d\s]/g, "").replace(/\s+/g, "-");
2929
}
3030

31-
public content(config: Config, schema: Schema): string {
32-
return "";
33-
}
31+
public abstract content(config: Config, schema: Schema): string;
3432
}
3533

3634
export class Property extends Entry {

0 commit comments

Comments
 (0)