@plumeria/core 10.2.0 → 10.2.1

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.
package/lib/css.d.ts CHANGED
@@ -5,8 +5,8 @@
5
5
  * type create = <const T extends Record<string, CreateStyleValue>>(rule: T)=> CreateReturnType<T>;
6
6
  * type createTheme = <const T extends CreateTheme>(rule: T)=> ReturnVariableType<T>;
7
7
  * type createStatic = <const T extends CreateStatic>(rule: T)=> T;
8
- * type keyframes = (rule: Keyframes) => string;
9
- * type viewTransition = (rule: ViewTransition) => string;
8
+ * type keyframes = <const T extends Keyframes>(rule: T) => string;
9
+ * type viewTransition = <const T extends ViewTransition>(rule: T) => string;
10
10
  * type variants = <T extends Variants>(rule: T) => (props: { [K in keyof T]?: keyof T[K] }) => CSSProperties;
11
11
  * type marker = (id: string, pseudo: string) => Marker;
12
12
  * type extended = <I extends string, P extends string>(id: I, pseudo: P) => Extended<I, P>;
@@ -53,10 +53,12 @@ declare module '@plumeria/core' {
53
53
  export type createStatic = <const T extends CreateStatic>(rule: T) => T;
54
54
 
55
55
  export const keyframes: keyframes;
56
- export type keyframes = (rule: Keyframes) => string;
56
+ export type keyframes = <const T extends Keyframes>(rule: T) => string;
57
57
 
58
58
  export const viewTransition: viewTransition;
59
- export type viewTransition = (rule: ViewTransition) => string;
59
+ export type viewTransition = <const T extends ViewTransition>(
60
+ rule: T,
61
+ ) => string;
60
62
 
61
63
  export const variants: variants;
62
64
  export type variants = <T extends Variants>(