mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
Merge pull request #33326 from DefinitelyTyped/dt-cleanup-2019-part-3
Cleanup part 3
This commit is contained in:
Vendored
+1
@@ -98,6 +98,7 @@ export namespace PetitDom {
|
||||
};
|
||||
|
||||
interface IntrinsicProps {
|
||||
content?: Content | ReadonlyArray<Content>;
|
||||
key?: Key;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -403,7 +403,7 @@ export interface StateResultsProvided<TDoc = BasicDoc> {
|
||||
* https://community.algolia.com/react-instantsearch/connectors/connectStateResults.html
|
||||
*/
|
||||
export function connectStateResults(stateless: React.StatelessComponent<StateResultsProvided>): React.ComponentClass;
|
||||
export function connectStateResults<TProps extends Partial<StateResultsProvided<TDoc>>, TDoc>(ctor: React.ComponentType<TProps>): ConnectedComponentClass<TProps, StateResultsProvided<TDoc>>;
|
||||
export function connectStateResults<TProps>(ctor: React.ComponentType<TProps>): ConnectedComponentClass<TProps, StateResultsProvided<{}>>;
|
||||
|
||||
export function connectStats(Composed: React.ComponentType<any>): React.ComponentClass<any>;
|
||||
export function connectToggleRefinement(Composed: React.ComponentType<any>): React.ComponentClass<any>;
|
||||
|
||||
Vendored
+1
-1
@@ -3,7 +3,7 @@
|
||||
// Definitions by: Sebastian Silbermann <https://github.com/eps1lon>
|
||||
// James Lawrence <https://github.com/jlaw90>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.8
|
||||
// TypeScript Version: 2.9
|
||||
import { createGenerateClassName, JSS, SheetsRegistry } from "jss";
|
||||
import * as React from "react";
|
||||
import { createTheming, ThemeProvider, withTheme } from "theming";
|
||||
|
||||
Vendored
+7
-7
@@ -73,11 +73,11 @@ export interface CSSProperties<Props> {
|
||||
| DynamicCSSRule<Props>
|
||||
| CSSProperties<Props>;
|
||||
}
|
||||
export type Styles<ClassKey extends string = string, Props = {}> = Record<
|
||||
export type Styles<ClassKey extends string | number | symbol = string, Props = {}> = Record<
|
||||
ClassKey,
|
||||
CSSProperties<Props>
|
||||
>;
|
||||
export type StyleCreator<C extends string = string, T extends {} = {}, Props = {}> = (
|
||||
export type StyleCreator<C extends string | number | symbol = string, T extends {} = {}, Props = {}> = (
|
||||
theme: T
|
||||
) => Styles<C, Props>;
|
||||
|
||||
@@ -93,20 +93,20 @@ export interface InjectOptions extends CreateStyleSheetOptions {
|
||||
theming?: Theming;
|
||||
}
|
||||
|
||||
export type ClassNameMap<C extends string> = Record<C, string>;
|
||||
export type ClassNameMap<C extends string | number | symbol> = Record<C, string>;
|
||||
export type WithSheet<
|
||||
S extends string | Styles | StyleCreator<string, any>,
|
||||
S extends string | Styles | StyleCreator<keyof S, any>,
|
||||
GivenTheme = undefined,
|
||||
Props = {}
|
||||
Props = {},
|
||||
> = {
|
||||
classes: ClassNameMap<
|
||||
S extends string
|
||||
S extends string | number | symbol
|
||||
? S
|
||||
: S extends StyleCreator<infer C, any, Props>
|
||||
? C
|
||||
: S extends Styles<infer C, Props> ? C : never
|
||||
>;
|
||||
} & WithTheme<S extends StyleCreator<string, infer T> ? T : GivenTheme>;
|
||||
} & WithTheme<S extends StyleCreator<keyof S, infer T> ? T : GivenTheme>;
|
||||
|
||||
export interface WithTheme<T> {
|
||||
theme: T;
|
||||
|
||||
Vendored
+1
-1
@@ -80,7 +80,7 @@ declare namespace SeamlessImmutable {
|
||||
propertyPath: [ K, L, M, N ], updaterFunction: (value: T[K][L][M][N], ...additionalParameters: any[]) => any, ...additionalArguments: any[]): Immutable<T>;
|
||||
updateIn<K extends keyof T, L extends keyof T[K], M extends keyof T[K][L], N extends keyof T[K][L][M], O extends keyof T[K][L][M][N]>(
|
||||
propertyPath: [ K, L, M, N, O ], updaterFunction: (value: T[K][L][M][N][O], ...additionalParameters: any[]) => any, ...additionalArguments: any[]): Immutable<T>;
|
||||
updateIn<TValue>(propertyPath: string[], updaterFunction: (value: TValue, ...additionalParameters: any[]) => any, ...additionalArguments: any[]): Immutable<T>;
|
||||
updateIn<TValue = any>(propertyPath: string[], updaterFunction: (value: TValue, ...additionalParameters: any[]) => any, ...additionalArguments: any[]): Immutable<T>;
|
||||
|
||||
without<K extends keyof T>(property: K): Immutable<T>;
|
||||
without<K extends keyof T>(...properties: K[]): Immutable<T>;
|
||||
|
||||
Reference in New Issue
Block a user