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.7 to 2.1.8

7

dist/tailwind.d.ts
import React from "react";
declare const isTwElement: unique symbol;
declare type IntrinsicElementsKeys = keyof JSX.IntrinsicElements;
export declare const mergeArrays: (template: TemplateStringsArray, templateElements: (string | undefined | null)[]) => (string | null | undefined)[];
export declare const cleanTemplate: (template: (string | undefined | null)[], inheritedClasses?: string) => string;
export declare const mergeArrays: (template: TemplateStringsArray, templateElements: TemplateElementResult[]) => TemplateElementResult[];
export declare const cleanTemplate: (template: TemplateElementResult[], inheritedClasses?: string) => string;
declare type StripCallSignature<T> = {

@@ -22,4 +22,5 @@ [K in keyof T]: T[K];

declare type NoInfer<T> = [T][T extends any ? 0 : never];
declare type TemplateElementResult = string | undefined | null | false;
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>;
<K extends object = {}>(template: TemplateStringsArray, ...templateElements: ((props: NoInfer<React.ComponentPropsWithRef<E>> & K) => TemplateElementResult)[]): TailwindComponent<E, K>;
}

@@ -26,0 +27,0 @@ 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>;

{
"name": "tailwind-styled-components",
"version": "2.1.7",
"version": "2.1.8",
"keywords": [

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

"devDependencies": {
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^12.1.2",

@@ -40,0 +41,0 @@ "@types/jest": "^27.4.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