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

@types/ink-gradient

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/ink-gradient - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

28

ink-gradient/index.d.ts

@@ -6,3 +6,3 @@ // Type definitions for ink-gradient 2.0

import * as React from 'react';
import * as React from "react";

@@ -18,15 +18,15 @@ // This needs to be updated when TypeScript enhances their support for mutual

name:
| 'cristal'
| 'teen'
| 'mind'
| 'morning'
| 'vice'
| 'passion'
| 'fruit'
| 'instagram'
| 'atlas'
| 'retro'
| 'summer'
| 'pastel'
| 'rainbow';
| "cristal"
| "teen"
| "mind"
| "morning"
| "vice"
| "passion"
| "fruit"
| "instagram"
| "atlas"
| "retro"
| "summer"
| "pastel"
| "rainbow";
}

@@ -33,0 +33,0 @@

{
"name": "@types/ink-gradient",
"version": "2.0.1",
"version": "2.0.2",
"description": "TypeScript definitions for ink-gradient",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ink-gradient",
"license": "MIT",

@@ -24,4 +25,4 @@ "contributors": [

},
"typesPublisherContentHash": "a473cdf5d1623de3702fd6d34258cfde9db74d803d0c26dac57213d3beeb9d74",
"typeScriptVersion": "3.2"
"typesPublisherContentHash": "7f803766abd2e852bb03b8adae1e8b7a76435b68663b8f3860a27f6fc4bbe5fa",
"typeScriptVersion": "4.5"
}

@@ -9,5 +9,49 @@ # Installation

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ink-gradient.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ink-gradient/index.d.ts)
````ts
// Type definitions for ink-gradient 2.0
// Project: https://github.com/sindresorhus/ink-gradient
// Definitions by: aaronleopold <https://github.com/aaronleopold>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import * as React from "react";
// This needs to be updated when TypeScript enhances their support for mutual
// exclusivity in properties. This edit I made will now throw errors when
// a user gives both of the mutually exclusive props.
type Without<T, U> = { [P in Exclude<keyof T, keyof U>]?: never };
type XOR<T, U> = T | U extends object ? (Without<T, U> & U) | (Without<U, T> & T) : T | U;
interface PropsName {
name:
| "cristal"
| "teen"
| "mind"
| "morning"
| "vice"
| "passion"
| "fruit"
| "instagram"
| "atlas"
| "retro"
| "summer"
| "pastel"
| "rainbow";
}
// note, object[] in this case refers to objects interpretable by tinycolor2
interface PropsColor {
colors: string[] | object[];
}
type GradientProps = XOR<PropsName, PropsColor> & { children: React.ReactNode };
declare const Gradient: React.FC<GradientProps>;
export = Gradient;
````
### Additional Details
* Last updated: Sat, 24 Oct 2020 17:21:40 GMT
* Last updated: Tue, 26 Sep 2023 14:36:22 GMT
* Dependencies: [@types/react](https://npmjs.com/package/@types/react)

@@ -14,0 +58,0 @@ * Global values: none

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