mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 23:07:06 +00:00
Add context and hooks (#41200)
This commit is contained in:
@@ -1 +1,3 @@
|
||||
lib/ThemedStyleSheet.d.ts
|
||||
lib/ThemedStyleSheet.d.ts
|
||||
lib/WithStylesContext.d.ts
|
||||
lib/hooks/useStyles.d.ts
|
||||
@@ -0,0 +1,4 @@
|
||||
import { Context } from "react";
|
||||
|
||||
declare const context: Context<{ stylesInterface: any, stylesTheme: any }>;
|
||||
export default context;
|
||||
@@ -0,0 +1,8 @@
|
||||
import { Styles } from "../../index";
|
||||
|
||||
declare function useStyles<TStyles extends Styles>({ stylesFn }: { stylesFn: (...args: any[]) => TStyles }): {
|
||||
css: Function;
|
||||
styles: TStyles;
|
||||
}
|
||||
|
||||
export default useStyles;
|
||||
Reference in New Issue
Block a user