@enonic/mock-xp
Version:
Mock Enonic XP API JavaScript Library
19 lines (13 loc) • 329 B
text/typescript
import type {Reference as ReferenceInterface} from '@enonic-types/lib-value';
export class Reference implements ReferenceInterface {
private nodeId: string
constructor(value: string) {
this.nodeId = value;
}
public getNodeId(): string {
return this.nodeId;
}
public toString(): string {
return this.nodeId;
}
}