UNPKG

@mcma/core

Version:

Node module with type definitions and helper utils for the EBU MCMA framework

21 lines (20 loc) 755 B
import { McmaObject, McmaObjectProperties } from "./mcma-object"; export interface McmaResourceProperties extends McmaObjectProperties { id?: string; dateCreated?: Date | string; dateModified?: Date | string; custom?: { [key: string]: any; }; } export declare function onResourceCreate(resource: McmaResourceProperties, id: string): void; export declare function onResourceUpsert(resource: McmaResourceProperties, id: string): void; export declare abstract class McmaResource extends McmaObject implements McmaResourceProperties { id?: string; dateCreated?: Date; dateModified?: Date; custom?: { [key: string]: any; }; protected constructor(type: string, properties?: McmaResourceProperties); }