New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@material-ui/types

Package Overview
Dependencies
Maintainers
6
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@material-ui/types - npm Package Compare versions

Comparing version 5.0.1 to 5.1.0

18

index.d.ts

@@ -42,2 +42,13 @@ import * as React from 'react';

/**
* Generate a set of string literal types with the given default record `T` and
* override record `U`.
*
* If the property value was `true`, the property key will be added to the
* string union.
*
* @internal
*/
export type OverridableStringUnion<T, U = {}> = GenerateStringUnion<Overwrite<T, U>>;
/**
* Like `T & U`, but using the value types from `U` where their properties overlap.

@@ -48,1 +59,8 @@ *

export type Overwrite<T, U> = Omit<T, keyof U> & U;
type GenerateStringUnion<T> = Extract<
{
[Key in keyof T]: true extends T[Key] ? Key : never;
}[keyof T],
string
>;

2

package.json
{
"name": "@material-ui/types",
"version": "5.0.1",
"version": "5.1.0",
"private": false,

@@ -5,0 +5,0 @@ "author": "Material-UI Team",

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