voxpelli / pony-cause Goto Github PK
View Code? Open in Web Editor NEWPonyfill and helpers for the standardized Error Causes
License: BSD Zero Clause License
Ponyfill and helpers for the standardized Error Causes
License: BSD Zero Clause License
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:
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)
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
@types/chai
, npm-run-all2
)eslint-plugin-es-x
, eslint-plugin-mocha
, eslint-plugin-promise
, eslint-plugin-sort-destructure-keys
, knip
)eslint
, eslint-plugin-jsdoc
, eslint-plugin-n
, eslint-plugin-security
, eslint-plugin-sort-destructure-keys
, eslint-plugin-unicorn
)c8
, chai
, husky
).github/workflows/lint.yml
.github/workflows/nodejs-legacy.yml
.github/workflows/nodejs.yml
.github/workflows/ts-internal.yml
.github/workflows/ts.yml
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
Benefits those with client side js who only use some of the helpers or just the ponyfill.
Will probably be implemented like in async-htm-to-string
, using the very same linemod
tool.
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:
pony-cause/lib/error-with-cause.js
Lines 5 to 9 in 4009048
Likely caused by:
Spontaneous thought is that TS has regressed rather than this being a correct error, but have to dig into it.
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 });
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.