mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
Merge pull request #32722 from gretzky/master
[rebass] fix `as` prop to accept custom components, strings, etc.
This commit is contained in:
Vendored
+2
-1
@@ -3,6 +3,7 @@
|
||||
// Definitions by: rhysd <https://github.com/rhysd>
|
||||
// ryee-dev <https://github.com/ryee-dev>
|
||||
// jamesmckenzie <https://github.com/jamesmckenzie>
|
||||
// sara f-p <https://github.com/gretzky>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.8
|
||||
|
||||
@@ -10,7 +11,7 @@ import * as React from "react";
|
||||
|
||||
export interface BaseProps<C> extends React.ClassAttributes<C> {
|
||||
className?: string;
|
||||
as?: string;
|
||||
as?: any;
|
||||
}
|
||||
|
||||
export interface SpaceProps<C> extends BaseProps<C> {
|
||||
|
||||
Reference in New Issue
Block a user