class-registry.d.ts 409 B

123456789101112
  1. import { Registry } from './registry.js';
  2. import { Class } from './types.js';
  3. export interface RegisterOptions {
  4. identifier?: string;
  5. allowProps?: string[];
  6. }
  7. export declare class ClassRegistry extends Registry<Class> {
  8. constructor();
  9. private classToAllowedProps;
  10. register(value: Class, options?: string | RegisterOptions): void;
  11. getAllowedProps(value: Class): string[] | undefined;
  12. }