Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tailwind-styled-components

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tailwind-styled-components - npm Package Compare versions

Comparing version 2.1.6 to 2.1.7

14

dist/tailwind.d.ts

@@ -22,11 +22,9 @@ import React from "react";

declare type NoInfer<T> = [T][T extends any ? 0 : never];
export interface TemplateFunction<E extends React.ComponentType<any> | IntrinsicElementsKeys, K2 extends object = {}> {
<K extends object = {}>(template: TemplateStringsArray, ...templateElements: ((props: NoInfer<React.ComponentPropsWithRef<E> & K2> & K) => string | undefined | null)[]): TailwindComponent<E, K & K2>;
export interface TemplateFunction<E extends React.ComponentType<any> | IntrinsicElementsKeys> {
<K extends object = {}>(template: TemplateStringsArray, ...templateElements: ((props: NoInfer<React.ComponentPropsWithRef<E>> & K) => string | undefined | null)[]): TailwindComponent<E, K>;
}
declare type InnerTailwindComponent<E extends React.ComponentType<any> | IntrinsicElementsKeys | TailwindComponent<any, any>> = E extends TailwindComponent<infer E2, any> ? E2 : E;
declare type InnerTailwindComponentOtherProps<E extends React.ComponentType<any> | IntrinsicElementsKeys | TailwindComponent<any, any>> = E extends TailwindComponent<any, infer K2> ? K2 : {};
declare type InnerTailwindComponentAllProps<E extends React.ComponentType<any> | IntrinsicElementsKeys | TailwindComponent<any, any>> = E extends TailwindComponent<infer E2, infer K2> ? React.ComponentPropsWithoutRef<E2> & K2 & React.RefAttributes<React.ComponentRef<E2> | undefined> : React.ComponentPropsWithoutRef<E> & React.RefAttributes<React.ComponentRef<E> | undefined>;
declare type InnerTailwindComponentAllProps<E extends React.ComponentType<any> | IntrinsicElementsKeys | TailwindComponent<any, any>> = E extends TailwindComponent<infer E2, any> ? React.ComponentPropsWithoutRef<E2> & React.RefAttributes<React.ComponentRef<E2> | undefined> : React.ComponentPropsWithoutRef<E> & React.RefAttributes<React.ComponentRef<E> | undefined>;
export interface TemplateFunctionFactory {
<E extends TailwindComponent<E2, K2>, E2 extends IntrinsicElementsKeys, K2 extends object = {}>(Element: E): TemplateFunction<E2, K2>;
<E extends TailwindComponent<any, any>>(Element: E): TemplateFunction<InnerTailwindComponent<E>, InnerTailwindComponentOtherProps<E>>;
<E extends TailwindComponent<E2, any>, E2 extends IntrinsicElementsKeys>(Element: E): TemplateFunction<E2>;
<E extends TailwindComponent<any, any>>(Element: E): TemplateFunction<any>;
<E extends IntrinsicElementsKeys>(Element: E): TemplateFunction<E>;

@@ -38,3 +36,3 @@ <E extends React.ComponentType<any>>(Element: E): TemplateFunction<E>;

};
declare const tw: TemplateFunctionFactory & IntrinsicElementsTemplateFunctionsMap;
declare const tw: any;
export default tw;
{
"name": "tailwind-styled-components",
"version": "2.1.6",
"version": "2.1.7",
"keywords": [

@@ -29,3 +29,2 @@ "react",

"test:types": "tsc -p ./src/typing-tests/tsconfig.json",
"posttest": "yarn run test:types",
"prepublishOnly": "npm run clean && npm run build"

@@ -32,0 +31,0 @@ },

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc