@lokalise/node-api
Version:
Official Lokalise API 2.0 Node.js client
33 lines (26 loc) • 774 B
text/typescript
import { BaseCollection } from "../../src/collections/base_collection";
import { Branch } from "../../src/models/branch.js";
export class DummyCollection extends BaseCollection<Branch> {
protected get elementClass(): new (
json: Record<string, unknown>,
) => Branch {
return Branch;
}
public testGetUri(uri: string | null): string {
return this.getUri(uri);
}
public testRootElementName(): string {
return this.rootElementName;
}
public testRootElementNameSingular(): string {
return this.rootElementNameSingular;
}
public testSecondaryElementClass(): new (
json: Record<string, unknown>,
) => Branch {
return this.secondaryElementClass;
}
public testSecondaryElementNameSingular(): string {
return this.secondaryElementNameSingular;
}
}