|
| 1 | + import { Overloader } from './overload' |
| 2 | +// ^^^^^^^^^^ reference syntax 1.0.0 src/`overload.d.ts`/Overloader# |
| 3 | + |
1 | 4 | export interface Superinterface {
|
2 | 5 | // ^^^^^^^^^^^^^^ definition syntax 1.0.0 src/`inheritance.ts`/Superinterface#
|
3 | 6 | // documentation ```ts\ninterface Superinterface\n```
|
|
7 | 10 | interfaceMethod(): string
|
8 | 11 | // ^^^^^^^^^^^^^^^ definition syntax 1.0.0 src/`inheritance.ts`/Superinterface#interfaceMethod().
|
9 | 12 | // documentation ```ts\n(method) interfaceMethod() => string\n```
|
| 13 | + } |
| 14 | + export interface IntermediateSuperinterface extends Superinterface { |
| 15 | +// ^^^^^^^^^^^^^^^^^^^^^^^^^^ definition syntax 1.0.0 src/`inheritance.ts`/IntermediateSuperinterface# |
| 16 | +// documentation ```ts\ninterface IntermediateSuperinterface\n``` |
| 17 | +// ^^^^^^^^^^^^^^ reference syntax 1.0.0 src/`inheritance.ts`/Superinterface# |
| 18 | + intermediateInterfaceMethod(): string |
| 19 | +// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ definition syntax 1.0.0 src/`inheritance.ts`/IntermediateSuperinterface#intermediateInterfaceMethod(). |
| 20 | +// documentation ```ts\n(method) intermediateInterfaceMethod() => string\n``` |
10 | 21 | }
|
11 | 22 | export abstract class Superclass {
|
12 | 23 | // ^^^^^^^^^^ definition syntax 1.0.0 src/`inheritance.ts`/Superclass#
|
|
15 | 26 | // ^^^^^^^^^^^^^^ definition syntax 1.0.0 src/`inheritance.ts`/Superclass#overrideMethod().
|
16 | 27 | // documentation ```ts\n(method) overrideMethod(): string\n```
|
17 | 28 | }
|
18 |
| - export abstract class IntermediateSuperclass extends Superclass {} |
| 29 | + export abstract class IntermediateSuperclass extends Superclass { |
19 | 30 | // ^^^^^^^^^^^^^^^^^^^^^^ definition syntax 1.0.0 src/`inheritance.ts`/IntermediateSuperclass#
|
20 | 31 | // documentation ```ts\nclass IntermediateSuperclass\n```
|
| 32 | +// relationship implementation scip-typescript npm syntax 1.0.0 src/`inheritance.ts`/Superclass# |
21 | 33 | // ^^^^^^^^^^ reference syntax 1.0.0 src/`inheritance.ts`/Superclass#
|
22 |
| - export class Subclass extends IntermediateSuperclass implements Superinterface { |
| 34 | + public override overrideMethod(): string { |
| 35 | +// ^^^^^^^^^^^^^^ definition syntax 1.0.0 src/`inheritance.ts`/IntermediateSuperclass#overrideMethod(). |
| 36 | +// documentation ```ts\n(method) overrideMethod(): string\n``` |
| 37 | +// relationship implementation reference scip-typescript npm syntax 1.0.0 src/`inheritance.ts`/Superclass#overrideMethod(). |
| 38 | + return 'this will get overridden' |
| 39 | + } |
| 40 | + public abstract intermediateOverrideMethod(): string |
| 41 | +// ^^^^^^^^^^^^^^^^^^^^^^^^^^ definition syntax 1.0.0 src/`inheritance.ts`/IntermediateSuperclass#intermediateOverrideMethod(). |
| 42 | +// documentation ```ts\n(method) intermediateOverrideMethod(): string\n``` |
| 43 | + } |
| 44 | + export class Subclass |
23 | 45 | // ^^^^^^^^ definition syntax 1.0.0 src/`inheritance.ts`/Subclass#
|
24 | 46 | // documentation ```ts\nclass Subclass\n```
|
25 |
| -// ^^^^^^^^^^^^^^^^^^^^^^ reference syntax 1.0.0 src/`inheritance.ts`/IntermediateSuperclass# |
26 |
| -// ^^^^^^^^^^^^^^ reference syntax 1.0.0 src/`inheritance.ts`/Superinterface# |
| 47 | +// relationship implementation scip-typescript npm syntax 1.0.0 src/`inheritance.ts`/IntermediateSuperclass# |
| 48 | +// relationship implementation scip-typescript npm syntax 1.0.0 src/`inheritance.ts`/IntermediateSuperinterface# |
| 49 | +// relationship implementation scip-typescript npm syntax 1.0.0 src/`inheritance.ts`/Superclass# |
| 50 | +// relationship implementation scip-typescript npm syntax 1.0.0 src/`inheritance.ts`/Superinterface# |
| 51 | +// relationship implementation scip-typescript npm syntax 1.0.0 src/`overload.d.ts`/Overloader# |
| 52 | + extends IntermediateSuperclass |
| 53 | +// ^^^^^^^^^^^^^^^^^^^^^^ reference syntax 1.0.0 src/`inheritance.ts`/IntermediateSuperclass# |
| 54 | + implements IntermediateSuperinterface, Overloader |
| 55 | +// ^^^^^^^^^^^^^^^^^^^^^^^^^^ reference syntax 1.0.0 src/`inheritance.ts`/IntermediateSuperinterface# |
| 56 | +// ^^^^^^^^^^ reference syntax 1.0.0 src/`overload.d.ts`/Overloader# |
| 57 | + { |
| 58 | + public onLiteral(param: any): void { |
| 59 | +// ^^^^^^^^^ definition syntax 1.0.0 src/`inheritance.ts`/Subclass#onLiteral(). |
| 60 | +// documentation ```ts\n(method) onLiteral(param: any): void\n``` |
| 61 | +// relationship implementation reference scip-typescript npm syntax 1.0.0 src/`overload.d.ts`/Overloader#onLiteral(). |
| 62 | +// ^^^^^ definition syntax 1.0.0 src/`inheritance.ts`/Subclass#onLiteral().(param) |
| 63 | +// documentation ```ts\n(parameter) param: any\n``` |
| 64 | + throw new Error('Method not implemented.' + param) |
| 65 | +// ^^^^^ reference typescript 4.6.2 lib/`lib.es5.d.ts`/Error# |
| 66 | +// ^^^^^ reference typescript 4.6.2 lib/`lib.es5.d.ts`/Error. |
| 67 | +// ^^^^^ reference syntax 1.0.0 src/`inheritance.ts`/Subclass#onLiteral().(param) |
| 68 | + } |
27 | 69 | property = 'property'
|
28 | 70 | // ^^^^^^^^ definition syntax 1.0.0 src/`inheritance.ts`/Subclass#property.
|
29 | 71 | // documentation ```ts\n(property) property: string\n```
|
| 72 | +// relationship implementation reference scip-typescript npm syntax 1.0.0 src/`inheritance.ts`/Superinterface#property. |
30 | 73 | public overrideMethod(): string {
|
31 | 74 | // ^^^^^^^^^^^^^^ definition syntax 1.0.0 src/`inheritance.ts`/Subclass#overrideMethod().
|
32 | 75 | // documentation ```ts\n(method) overrideMethod(): string\n```
|
| 76 | +// relationship implementation reference scip-typescript npm syntax 1.0.0 src/`inheritance.ts`/IntermediateSuperclass#overrideMethod(). |
| 77 | +// relationship implementation reference scip-typescript npm syntax 1.0.0 src/`inheritance.ts`/Superclass#overrideMethod(). |
| 78 | + throw new Error('Method not implemented.') |
| 79 | +// ^^^^^ reference typescript 4.6.2 lib/`lib.es5.d.ts`/Error# |
| 80 | +// ^^^^^ reference typescript 4.6.2 lib/`lib.es5.d.ts`/Error. |
| 81 | + } |
| 82 | + public intermediateOverrideMethod(): string { |
| 83 | +// ^^^^^^^^^^^^^^^^^^^^^^^^^^ definition syntax 1.0.0 src/`inheritance.ts`/Subclass#intermediateOverrideMethod(). |
| 84 | +// documentation ```ts\n(method) intermediateOverrideMethod(): string\n``` |
| 85 | +// relationship implementation reference scip-typescript npm syntax 1.0.0 src/`inheritance.ts`/IntermediateSuperclass#intermediateOverrideMethod(). |
33 | 86 | throw new Error('Method not implemented.')
|
34 | 87 | // ^^^^^ reference typescript 4.6.2 lib/`lib.es5.d.ts`/Error#
|
35 | 88 | // ^^^^^ reference typescript 4.6.2 lib/`lib.es5.d.ts`/Error.
|
36 | 89 | }
|
37 | 90 | public interfaceMethod(): string {
|
38 | 91 | // ^^^^^^^^^^^^^^^ definition syntax 1.0.0 src/`inheritance.ts`/Subclass#interfaceMethod().
|
39 | 92 | // documentation ```ts\n(method) interfaceMethod(): string\n```
|
| 93 | +// relationship implementation reference scip-typescript npm syntax 1.0.0 src/`inheritance.ts`/Superinterface#interfaceMethod(). |
| 94 | + throw new Error('Method not implemented.') |
| 95 | +// ^^^^^ reference typescript 4.6.2 lib/`lib.es5.d.ts`/Error# |
| 96 | +// ^^^^^ reference typescript 4.6.2 lib/`lib.es5.d.ts`/Error. |
| 97 | + } |
| 98 | + public intermediateInterfaceMethod(): string { |
| 99 | +// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ definition syntax 1.0.0 src/`inheritance.ts`/Subclass#intermediateInterfaceMethod(). |
| 100 | +// documentation ```ts\n(method) intermediateInterfaceMethod(): string\n``` |
| 101 | +// relationship implementation reference scip-typescript npm syntax 1.0.0 src/`inheritance.ts`/IntermediateSuperinterface#intermediateInterfaceMethod(). |
40 | 102 | throw new Error('Method not implemented.')
|
41 | 103 | // ^^^^^ reference typescript 4.6.2 lib/`lib.es5.d.ts`/Error#
|
42 | 104 | // ^^^^^ reference typescript 4.6.2 lib/`lib.es5.d.ts`/Error.
|
|
49 | 111 | property: 'property',
|
50 | 112 | // ^^^^^^^^ definition syntax 1.0.0 src/`inheritance.ts`/property0:
|
51 | 113 | // documentation ```ts\n(property) property: string\n```
|
| 114 | +// relationship implementation reference scip-typescript npm syntax 1.0.0 src/`inheritance.ts`/Superinterface#property. |
52 | 115 | interfaceMethod: (): string => {
|
53 | 116 | // ^^^^^^^^^^^^^^^ definition syntax 1.0.0 src/`inheritance.ts`/interfaceMethod0:
|
54 | 117 | // documentation ```ts\n(property) interfaceMethod: () => string\n```
|
| 118 | +// relationship implementation reference scip-typescript npm syntax 1.0.0 src/`inheritance.ts`/Superinterface#interfaceMethod(). |
55 | 119 | throw new Error('Function not implemented.')
|
56 | 120 | // ^^^^^ reference typescript 4.6.2 lib/`lib.es5.d.ts`/Error#
|
57 | 121 | // ^^^^^ reference typescript 4.6.2 lib/`lib.es5.d.ts`/Error.
|
|
71 | 135 | interfaceMethod: (): string => 'inferred',
|
72 | 136 | // ^^^^^^^^^^^^^^^ definition syntax 1.0.0 src/`inheritance.ts`/interfaceMethod1:
|
73 | 137 | // documentation ```ts\n(property) interfaceMethod: () => string\n```
|
| 138 | +// relationship implementation reference scip-typescript npm syntax 1.0.0 src/`inheritance.ts`/Superinterface#interfaceMethod(). |
74 | 139 | property: 'inferred',
|
75 | 140 | // ^^^^^^^^ definition syntax 1.0.0 src/`inheritance.ts`/property1:
|
76 | 141 | // documentation ```ts\n(property) property: string\n```
|
| 142 | +// relationship implementation reference scip-typescript npm syntax 1.0.0 src/`inheritance.ts`/Superinterface#property. |
77 | 143 | })
|
78 | 144 | }
|
79 | 145 |
|
0 commit comments