Git Product home page Git Product logo

pony-cause's Issues

TypeScript error

node_modules/pony-cause/index.d.ts:5:5 - error TS2416: Property 'cause' in type 'ErrorWithCause<T>' is not assignable to the same property in base type 'Error'.
  Type 'T' is not assignable to type 'Error | undefined'.
    Type 'T' is not assignable to type 'Error'.

5     cause: T;
      ~~~~~


Found 1 error in node_modules/pony-cause/index.d.ts:

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: Cannot find preset's package (github>whitesource/merge-confidence:beta)

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/lint.yml
.github/workflows/nodejs-legacy.yml
.github/workflows/nodejs.yml
.github/workflows/ts-internal.yml
.github/workflows/ts.yml
npm
package.json
  • @types/chai ^4.3.14
  • @types/chai-string ^1.4.5
  • @types/mocha ^10.0.6
  • @types/verror ^1.10.10
  • @voxpelli/eslint-config ^19.0.0
  • @voxpelli/tsconfig ^11.0.0
  • c8 ^9.1.0
  • chai ^4.4.1
  • chai-string ^1.5.0
  • eslint ^8.57.0
  • eslint-plugin-es-x ^7.6.0
  • eslint-plugin-import ^2.29.1
  • eslint-plugin-jsdoc ^46.10.1
  • eslint-plugin-mocha ^10.4.2
  • eslint-plugin-n ^16.6.2
  • eslint-plugin-promise ^6.1.1
  • eslint-plugin-security ^1.7.1
  • eslint-plugin-sort-destructure-keys ^1.5.0
  • eslint-plugin-unicorn ^48.0.1
  • husky ^8.0.3
  • installed-check ^9.3.0
  • knip ^5.9.4
  • linemod ^1.1.0
  • mocha ^10.4.0
  • npm-run-all2 ^6.1.2
  • type-coverage ^2.28.1
  • typescript ~5.4.5
  • verror ^1.10.1
  • node >=12.0.0
test-published-types/package.json

  • Check this box to trigger a request for Renovate to run again on this repository

Fix type regression in `tsnext` which throws `TS2463`

The tsnext tests are now failing: https://github.com/voxpelli/pony-cause/runs/7605089081?check_suite_focus=true

index.js(9,25): error TS2463: A binding pattern parameter cannot be optional in an implementation signature.

Happens at:

/**
* @param {string} message
* @param {{ cause?: T }} [options]
*/
constructor (message, { cause } = {}) {

Likely caused by:

Spontaneous thought is that TS has regressed rather than this being a correct error, but have to dig into it.

Ensure `ErrorWithCause` can be subclassed properly with types

The following code gives Type 'unknown' is not assignable to type 'undefined':

import { ErrorWithCause } from 'pony-cause';

class AuthError extends ErrorWithCause {};

try {
  // ...
} catch (err) {
  throw new AuthError('Foobar', { cause: err });
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.