Skip to content

Commit

Permalink
explicit types
Browse files Browse the repository at this point in the history
  • Loading branch information
zibs committed May 8, 2024
1 parent ec5f761 commit 99a1dae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions shim.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import "react-native";
import { type ImageStyle, type TextStyle, type ViewStyle } from "react-native";

module "react-native" {
export * from "react-native";
Expand All @@ -11,13 +12,12 @@ module "react-native" {
| AddDark<TextStyle>
| AddDark<ImageStyle>;
};


/**
* Create a stylesheet with dark-mode support via $dark property on style objects.
*/
export function create<T extends NamedStylesWithDark<T> | NamedStylesWithDark<any>>(
styles: T & NamedStylesWithDark<any>,
): T;
export function create<
T extends NamedStylesWithDark<T> | NamedStylesWithDark<any>,
>(styles: T & NamedStylesWithDark<any>): T;
}
}

0 comments on commit 99a1dae

Please sign in to comment.