@rr0/data
Version:
RR0 data model
10 lines (9 loc) • 505 B
TypeScript
import { Organization } from "./Organization.js";
import { OrganizationJson } from "./OrganizationJson.js";
import { TypedDataFactory } from "../TypedDataFactory.js";
import { RR0EventFactory } from "../event/RR0EventFactory.js";
export declare class OrganizationFactory<O extends Organization = Organization, J extends OrganizationJson = OrganizationJson> extends TypedDataFactory<O, J> {
constructor(eventFactory: RR0EventFactory);
parse(orgJson: J): O;
create(id: string, orgJson: J): O;
}