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

tslang

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tslang - npm Package Compare versions

Comparing version 0.1.8 to 0.1.9

4

library/comparison.d.ts

@@ -1,5 +0,5 @@

export type IsEqual<TA, TB> = TA extends TB
? (TB extends TA ? true : false)
export type IsEqual<TA, TB> = [TA] extends [TB]
? ([TB] extends [TA] ? true : false)
: false;
export type IsCompatible<T, TComparison> = T extends TComparison ? true : false;

@@ -0,1 +1,2 @@

import {IsEqual} from './comparison';
import {Primitive} from './types';

@@ -98,2 +99,6 @@

export type Default<T, TDefault> = IsEqual<T, never> extends true
? TDefault
: T;
type __DeepReadonly<T> = {readonly [P in keyof T]: DeepReadonly<T[P]>};

@@ -100,0 +105,0 @@

{
"name": "tslang",
"version": "0.1.8",
"version": "0.1.9",
"description": "TypeScript Language Type Utilities.",

@@ -5,0 +5,0 @@ "license": "MIT",

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