Skip to content

Commit

Permalink
Undo unnecessary indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
namankheterpal authored and namankheterpal committed Nov 13, 2018
1 parent acceeae commit a2d42a2
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/preact.d.ts
Expand Up @@ -54,7 +54,7 @@ declare namespace preact {

type RenderableProps<P, RefType = any> = Readonly<
P & Attributes & { children?: ComponentChildren; ref?: Ref<RefType> }
>;
>;

interface FunctionalComponent<P = {}> {
(props: RenderableProps<P>, context?: any): VNode<any> | null;
Expand All @@ -63,7 +63,7 @@ declare namespace preact {
}

interface ComponentConstructor<P = {}, S = {}> {
new(props: P, context?: any): Component<P, S>;
new (props: P, context?: any): Component<P, S>;
displayName?: string;
defaultProps?: Partial<P>;
}
Expand Down Expand Up @@ -127,11 +127,11 @@ declare namespace preact {
type Defaultize<Props, Defaults> =
// Distribute over unions
Props extends any
? // Make any properties included in Default optional
& Partial<Pick<Props, Extract<keyof Props, keyof Defaults>>>
// Include the remaining properties from Props
& Pick<Props, Exclude<keyof Props, keyof Defaults>>
: never;
? // Make any properties included in Default optional
& Partial<Pick<Props, Extract<keyof Props, keyof Defaults>>>
// Include the remaining properties from Props
& Pick<Props, Exclude<keyof Props, keyof Defaults>>
: never;

declare global {
namespace JSX {
Expand All @@ -151,8 +151,8 @@ declare global {

type LibraryManagedAttributes<Component, Props> =
Component extends { defaultProps: infer Defaults }
? Defaultize<Props, Defaults>
: Props;
? Defaultize<Props, Defaults>
: Props;

interface SVGAttributes extends HTMLAttributes {
accentHeight?: number | string;
Expand Down

0 comments on commit a2d42a2

Please sign in to comment.