Skip to content

Commit

Permalink
fix: undefined with pattern suggestion when writing the responsive pa…
Browse files Browse the repository at this point in the history
…tterned value
  • Loading branch information
Mhp23 committed Sep 3, 2024
1 parent b938f7e commit 8998994
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ export type NamedStyles<T> = {
| WithPattern<ImageStyle>;
};
export type Pattern = 'rs' | 'rw' | 'rh';
export type ResponsivePattern = `${number | undefined}${Pattern}`;
export type ResponsivePattern<T extends number | undefined = any> =
`${T}${Pattern}`;
export type ValuePattern = string | number | ResponsivePattern;
export type MethodType = 'linear' | 'recursive';
export type CreateStyleConfig = {
Expand Down

0 comments on commit 8998994

Please sign in to comment.