diff --git a/src/preact.d.ts b/src/preact.d.ts index 0f23061177..a981fdfa92 100644 --- a/src/preact.d.ts +++ b/src/preact.d.ts @@ -54,7 +54,7 @@ declare namespace preact { type RenderableProps = Readonly< P & Attributes & { children?: ComponentChildren; ref?: Ref } - >; + >; interface FunctionalComponent

{ (props: RenderableProps

, context?: any): VNode | null; @@ -63,7 +63,7 @@ declare namespace preact { } interface ComponentConstructor

{ - new(props: P, context?: any): Component; + new (props: P, context?: any): Component; displayName?: string; defaultProps?: Partial

; } @@ -127,11 +127,11 @@ declare namespace preact { type Defaultize = // Distribute over unions Props extends any - ? // Make any properties included in Default optional - & Partial>> - // Include the remaining properties from Props - & Pick> - : never; + ? // Make any properties included in Default optional + & Partial>> + // Include the remaining properties from Props + & Pick> + : never; declare global { namespace JSX { @@ -151,8 +151,8 @@ declare global { type LibraryManagedAttributes = Component extends { defaultProps: infer Defaults } - ? Defaultize - : Props; + ? Defaultize + : Props; interface SVGAttributes extends HTMLAttributes { accentHeight?: number | string;