@oselvar/c4
Version:
Test helpers for Cloudflare Workers
10 lines (8 loc) • 326 B
TypeScript
type Constructor<T = object> = new (...args: any[]) => T;
type Component = Constructor;
type C4ComponentParams = {
tags?: string[];
};
declare function C4Component<T extends Component>(params?: C4ComponentParams): (component: T) => T;
declare function C4Operation(): MethodDecorator;
export { C4Component, C4Operation };