Socket
Socket
Sign inDemoInstall

erreur

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

erreur - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

10

dist/mod.d.ts

@@ -30,7 +30,11 @@ declare type ErreurInfos = {

};
declare type FromTypesFactory<ErrorsInfos extends {
kind: string;
message: string;
}> = <Errors extends FromTypes<ErrorsInfos>>(errors: Errors) => ErreursMap<Errors>;
declare class ErreursMap<Errors extends ErreursMapErrors> {
static fromType<Errors extends {
static fromTypes<ErrorsInfos extends {
kind: string;
message: string;
}>(errors: FromTypes<Errors>): ErreursMap<FromTypes<Errors>>;
}>(): FromTypesFactory<ErrorsInfos>;
readonly errors: Errors;

@@ -57,2 +61,2 @@ /**

export { Erreur, ErreurInfos, ErreursMap, ErreursMapCreate, ErreursMapErrors, Expand, FromTypes };
export { Erreur, ErreurInfos, ErreursMap, ErreursMapCreate, ErreursMapErrors, Expand, FromTypes, FromTypesFactory };

@@ -60,4 +60,4 @@ var __defProp = Object.defineProperty;

}
static fromType(errors) {
return new ErreursMap(errors);
static fromTypes() {
return (errors) => new ErreursMap(errors);
}

@@ -64,0 +64,0 @@ is(val) {

{
"name": "erreur",
"version": "1.1.0",
"version": "1.1.1",
"description": "Type safe custom errors",

@@ -5,0 +5,0 @@ "keywords": [

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