From 06663cb747e28c1622917783e9fc6f302d9d344f Mon Sep 17 00:00:00 2001 From: Linus Miller Date: Sun, 5 Apr 2020 19:58:27 +0200 Subject: [PATCH] Use correct type letter for store state --- preact.d.ts | 8 ++++---- react.d.ts | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/preact.d.ts b/preact.d.ts index fac8225..cf3bd5b 100644 --- a/preact.d.ts +++ b/preact.d.ts @@ -14,11 +14,11 @@ declare module 'unistore/preact' { Child: Preact.ComponentConstructor, S> | Preact.AnyComponent, S> ) => Preact.ComponentConstructor; - export interface ProviderProps { - store: Store; + export interface ProviderProps { + store: Store; } - export class Provider extends Preact.Component> { - render(props: ProviderProps): Preact.JSX.Element; + export class Provider extends Preact.Component> { + render(props: ProviderProps): Preact.JSX.Element; } } diff --git a/react.d.ts b/react.d.ts index 1c01818..41137f2 100644 --- a/react.d.ts +++ b/react.d.ts @@ -15,11 +15,11 @@ declare module 'unistore/react' { Child: ((props: T & I & MappedActionCreators) => React.ReactNode) | React.ComponentClass, S> | React.FC> ) => React.ComponentClass | React.FC; - export interface ProviderProps { - store: Store; + export interface ProviderProps { + store: Store; } - export class Provider extends React.Component, {}> { + export class Provider extends React.Component, {}> { render(): React.ReactNode; }