forked from nirsky/react-native-size-matters
-
Notifications
You must be signed in to change notification settings - Fork 0
/
extend.d.ts
19 lines (17 loc) · 895 Bytes
/
extend.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import * as RN from "react-native";
import { StringifiedStyles, NamedStyles } from './index.d';
declare module "react-native-size-matters/extend" {
export function scale(size: number): number;
export function verticalScale(size: number): number;
export function moderateScale(size: number, factor?: number): number;
export function moderateVerticalScale(size: number, factor?: number): number;
export function s(size: number): number;
export function vs(size: number): number;
export function ms(size: number, factor?: number): number;
export function mvs(size: number, factor?: number): number;
export namespace ScaledSheet {
export function create<T extends NamedStyles<T> | NamedStyles<any>>(stylesObject: T): {
[P in keyof T]: RN.RegisteredStyle<T[P] & Record<Extract<keyof T[P], keyof StringifiedStyles>, number>>
};
}
}