8 lines
245 B
TypeScript
8 lines
245 B
TypeScript
export abstract class Serializable {
|
|
public abstract serialize(): string;
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
public static deserialize (str: string): Serializable {
|
|
throw new Error ('not implemented');
|
|
}
|
|
}
|