Skip to content

Commit

Permalink
Fixed TSLint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed Jul 27, 2020
1 parent 472eda6 commit 26bcbaa
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
18 changes: 10 additions & 8 deletions packages/react/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,22 +109,24 @@ type ReactJSXIntrinsicElements = JSX.IntrinsicElements
export const jsx: typeof createElement
export namespace jsx {
export namespace JSX {
interface Element extends ReactJSXElement {}
interface ElementClass extends ReactJSXElementClass {}
interface ElementAttributesProperty
export interface Element extends ReactJSXElement {}
export interface ElementClass extends ReactJSXElementClass {}
export interface ElementAttributesProperty
extends ReactJSXElementAttributesProperty {}
interface ElementChildrenAttribute
export interface ElementChildrenAttribute
extends ReactJSXElementChildrenAttribute {}

type LibraryManagedAttributes<C, P> = C extends React.ComponentType<infer T>
export type LibraryManagedAttributes<C, P> = C extends React.ComponentType<
infer T
>
? WithConditionalCssProp<T>
: WithConditionalCssProp<ReactJSXLibraryManagedAttributes<C, P>>

interface IntrinsicAttributes extends ReactJSXIntrinsicAttributes {}
interface IntrinsicClassAttributes<T>
export interface IntrinsicAttributes extends ReactJSXIntrinsicAttributes {}
export interface IntrinsicClassAttributes<T>
extends ReactJSXIntrinsicClassAttributes<T> {}

type IntrinsicElements = {
export type IntrinsicElements = {
[K in keyof ReactJSXIntrinsicElements]: ReactJSXIntrinsicElements[K] & {
css?: Interpolation<Theme>
}
Expand Down
3 changes: 2 additions & 1 deletion packages/react/types/tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
],
"no-null-undefined-union": false,
"no-object-literal-type-assertion": false,
"no-unnecessary-generics": false
"no-unnecessary-generics": false,
"no-empty-interface": false
}
}

0 comments on commit 26bcbaa

Please sign in to comment.