Spaces:
Sleeping
Sleeping
File size: 278 Bytes
22df730 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
export class Link {
constructor(
public table: string,
public id: string,
) {}
static fromString(str: string): Link {
const [table, id] = str.split(':');
return new Link(table, id);
}
toString(): string {
return `${this.table}:${this.id}`;
}
}
|