提交学习笔记专用
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
409 B

  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. }