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

ts-pattern

Package Overview
Dependencies
Maintainers
1
Versions
152
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-pattern - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

5

lib/types/Match.d.ts

@@ -62,5 +62,6 @@ import { Pattern, SelectPattern, GuardValue } from './Pattern';

* ### Match.otherwise
* Catch-all branch.
* takes a function returning the default value
* and return the matched result.
*
* Equivalent to `.with(__)`
* Equivalent to `.with(__, () => x).run()`
**/

@@ -67,0 +68,0 @@ otherwise: <c>(handler: () => PickReturnValue<b, c>) => PickReturnValue<b, c>;

2

package.json
{
"name": "ts-pattern",
"version": "0.3.0",
"version": "0.3.1",
"description": "Typescript pattern matching library",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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