Skip to content

preact.d.ts: type definition error #96

@kohlmannj

Description

@kohlmannj

I noticed this error when reviewing preact.d.ts in Visual Studio Code (using TypeScript v2.9.2):

preact.d.ts#L20:3:

Property 'render' in type 'Provider<T>' is not assignable to the same property in base type 'Component<ProviderProps<T>, {}>'.
  Type '(props: ProviderProps<T>, {}: {}) => VNode<any>' is not assignable to type '(props?: Readonly<ProviderProps<T> & Attributes & { children?: ComponentChild[] | undefined; ref?...'.
    Type 'VNode<any>' is not assignable to type 'Element | null'.
      Type 'VNode<any>' is not assignable to type 'Element'.
        Property 'type' is missing in type 'VNode<any>'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions