From 4f5adebf7ab72680a2f9e1ebbd1900b5f73d4e21 Mon Sep 17 00:00:00 2001 From: Robert Long Date: Mon, 29 Jun 2020 09:10:36 -0700 Subject: [PATCH] Remove ComponentProps and replace with inline union type --- src/Component.d.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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; }