diff --git a/src/Component.d.ts b/src/Component.d.ts index 2e7af4a1..081ca33b 100644 --- a/src/Component.d.ts +++ b/src/Component.d.ts @@ -4,8 +4,6 @@ import { PropType } from "./Types"; * Base class for components. */ -export type ComponentProps

= P | false; - export type ComponentSchemaProp = { default?: T; type: PropType; @@ -18,7 +16,7 @@ export type ComponentSchema = { export class Component

{ static schema: ComponentSchema; static isComponent: true; - constructor(props?: ComponentProps

); + constructor(props?: P | false); copy(source: this): this; clone(): this; reset(): void; @@ -28,5 +26,5 @@ export class Component

{ export interface ComponentConstructor> { schema: ComponentSchema; isComponent: true; - new (props?: ComponentProps

): C; + new (props?: P | false): C; }