@glitz/type
Advanced tools
Comparing version 1.1.0-beta.6 to 1.1.0-beta.7
import * as CSS from 'csstype'; | ||
export interface Style extends FeaturedProperties, PseudoMap { | ||
'@keyframes'?: PropertiesList; | ||
'@font-face'?: FontFace; | ||
} | ||
export interface Style extends FeaturedProperties, PseudoMap {} | ||
export interface Properties extends CSS.StandardLonghandPropertiesFallback, CSS.VendorPropertiesFallback {} | ||
type FeaturedProperties = Omit<Properties, keyof ExtendedProperties> & | ||
export type FeaturedProperties = Omit<Properties, keyof ExtendedProperties> & | ||
ExtendedProperties & | ||
Omit<CSS.StandardShorthandPropertiesFallback, keyof ShorthandProperties> & | ||
ShorthandProperties; | ||
ShorthandProperties & { | ||
'@keyframes'?: PropertiesList; | ||
'@font-face'?: FontFace; | ||
}; | ||
interface ExtendedProperties { | ||
export interface ExtendedProperties { | ||
animationName?: PropertiesList | Properties['animationName']; | ||
@@ -23,3 +23,3 @@ fontFamily?: | ||
interface ShorthandProperties { | ||
export interface ShorthandProperties { | ||
animation?: { | ||
@@ -172,11 +172,11 @@ delay?: CSS.StandardLonghandPropertiesFallback['animationDelay']; | ||
type PseudoMap = { [P in CSS.SimplePseudos]?: Style }; | ||
export type PseudoMap = { [P in CSS.SimplePseudos]?: FeaturedProperties & PseudoMap }; | ||
interface PropertiesList { | ||
export interface PropertiesList { | ||
[identifier: string]: Properties; | ||
} | ||
type FontFace = Omit<CSS.FontFaceFallback, 'fontFamily'>; | ||
export type FontFace = Omit<CSS.FontFaceFallback, 'fontFamily'>; | ||
type Diff<T extends string, U extends string> = ({ [P in T]: P } & { [P in U]: never } & { [x: string]: never })[T]; | ||
type Omit<T, K extends keyof T> = Pick<T, Diff<keyof T, K>>; |
{ | ||
"name": "@glitz/type", | ||
"version": "1.1.0-beta.6", | ||
"version": "1.1.0-beta.7", | ||
"main": "", | ||
@@ -5,0 +5,0 @@ "types": "./index.d.ts", |
9583