8 lines
139 B
TypeScript
8 lines
139 B
TypeScript
interface IList<T> {
|
|
data(): T;
|
|
next(): string;
|
|
}
|
|
class List<U> implements IList<U> {
|
|
data(): U;
|
|
next(): string;
|
|
}
|