
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
TypeScript will support all proposals above stage-3. But there are always some gap between TypeScript support and proposal progress. And sometimes we want to use proposals within stage-3 (e.g. `Iterator helper`) because we may use polyfill.
TypeScript will support all proposals above stage-3.
But there are always some gap between TypeScript support and proposal progress.
And sometimes we want to use proposals within stage-3 (e.g. Iterator helper
) because we may use polyfill.
In this case, we have to write those declarations by our own.
But with core-dts
, we can use these proposal with additional declaration files.
pnpm add core-dts -D
Set add core-dts
into types
in compiler options
.
{
"compilerOptions": {
"types": ["core-dts"]
}
}
Default proposals are above stage-3
. If you want to use something like stage-2
proposal.
{
"compilerOptions": {
"types": ["core-dts/src/proposals/stage-2"]
}
}
Or you want to use some specific proposal.
{
"compilerOptions": {
"types": ["core-dts/src/proposals/stage-2/iterator-helper.d.ts"]
}
}
Array
find from lastArray
groupingArray
by copyIterator
helpersSet
methodsMap.prototype.emplace
Array.fromAsync
Array.isTemplateObject
Symbol.{ asyncDispose, dispose }
for using
statementSymbol.metadataKey
for decorators metadata proposalObservable
.of
and .from
methods on collection constructorscompositeKey
and compositeSymbol
Array
filteringArray
deduplicationArray
Number.range
Number.fromString
Math
extensionsMath.signbit
String.cooked
String.prototype.codePoints
Symbol.matcher
for pattern matchingFunction.prototype.unThis
Function.{ isCallable, isConstructor }
FAQs
TypeScript will support all proposals above stage-3. But there are always some gap between TypeScript support and proposal progress. And sometimes we want to use proposals within stage-3 (e.g. `Iterator helper`) because we may use polyfill.
The npm package core-dts receives a total of 24 weekly downloads. As such, core-dts popularity was classified as not popular.
We found that core-dts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.