props.d.ts 613 B

12345678910111213
  1. export type NodePropertyDescriptor = {
  2. type: 'object' | 'value' | 'array' | 'node' | 'container' | 'mix';
  3. name: string;
  4. key?: string;
  5. ctor?: new (...args: any[]) => any;
  6. };
  7. /**
  8. * A decorator to define different type of attribute setter or
  9. * getter for current node.
  10. */
  11. export declare function defineProps(descriptors: NodePropertyDescriptor[]): (Node: any) => any;
  12. export declare function nodeProps(node: Record<string, new (...args: any[]) => any>): NodePropertyDescriptor[];
  13. export declare function containerProps(node: Record<string, new (...args: any[]) => any>): NodePropertyDescriptor[];