@tamagui/core 1.0.1-beta.169 → 1.0.1-beta.171

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,7 +12,7 @@ declare class TamaguiManager {
12
12
  [key: string]: string | number;
13
13
  };
14
14
  }, {
15
- [key: string]: string | {
15
+ [key: string]: string | any[] | {
16
16
  [key: string]: any;
17
17
  };
18
18
  }, import("./types").GenericFonts>;
package/types/config.d.ts CHANGED
@@ -11,7 +11,7 @@ export declare const getConfig: () => TamaguiInternalConfig<import("./types").Cr
11
11
  [key: string]: string | number;
12
12
  };
13
13
  }, {
14
- [key: string]: string | {
14
+ [key: string]: string | any[] | {
15
15
  [key: string]: any;
16
16
  };
17
17
  }, import("./types").GenericFonts>;
@@ -18,7 +18,7 @@ export declare function expandStyles(style: Record<string, any>, config?: import
18
18
  [key: string]: string | number;
19
19
  };
20
20
  }, {
21
- [key: string]: string | {
21
+ [key: string]: string | any[] | {
22
22
  [key: string]: any;
23
23
  };
24
24
  }, import("..").GenericFonts>): Record<string, any>;
@@ -1,5 +1,5 @@
1
1
  export declare function getAnimationDriver(): import("..").AnimationDriver<{
2
- [key: string]: string | {
2
+ [key: string]: string | any[] | {
3
3
  [key: string]: any;
4
4
  };
5
5
  }>;
package/types/types.d.ts CHANGED
@@ -98,7 +98,7 @@ export declare type GenericFonts = Record<string, GenericFont>;
98
98
  declare type GenericAnimations = {
99
99
  [key: string]: string | {
100
100
  [key: string]: any;
101
- };
101
+ } | any[];
102
102
  };
103
103
  export interface TamaguiCustomConfig {
104
104
  }
@@ -144,7 +144,7 @@ export declare type Media = TamaguiConfig['media'];
144
144
  export declare type Themes = TamaguiConfig['themes'];
145
145
  export declare type ThemeName = GetAltThemeNames<keyof Themes>;
146
146
  export declare type ThemeTokens = `$${ThemeKeys}`;
147
- export declare type AnimationKeys = Omit<GetAnimationKeys<TamaguiConfig>, number>;
147
+ export declare type AnimationKeys = TamaguiConfig['animations'] extends AnimationDriver<infer Config> ? keyof Config : string;
148
148
  export declare type FontLanguages = ArrayIntersection<TamaguiConfig['fontLanguages']>;
149
149
  declare type ArrayIntersection<A extends any[]> = A[keyof A];
150
150
  declare type GetAltThemeNames<S> = (S extends `${string}_${infer Alt}` ? GetAltThemeNames<Alt> : S) | S;
@@ -203,7 +203,7 @@ export declare type TamaguiInternalConfig<A extends GenericTokens = GenericToken
203
203
  parsed: boolean;
204
204
  inverseShorthands: Record<string, string>;
205
205
  };
206
- export declare type GetAnimationKeys<A extends GenericTamaguiConfig> = keyof A['animations']['animations'];
206
+ export declare type GetAnimationKeys<A extends GenericTamaguiConfig> = keyof A['animations'];
207
207
  export declare type UnionableString = string & {};
208
208
  export declare type UnionableNumber = number & {};
209
209
  export declare type PropTypes<A extends TamaguiComponent> = A extends React.FunctionComponent<infer Props> ? Props : unknown;