TypeScript will support all proposals above stage-3.

Overview

core-dts

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.

Install

pnpm add core-dts -D

Setup

Set add core-dts into types in compiler options.

{
  "compilerOptions": {
    "types": ["core-dts"]
  }
}

Proposals

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"]
  }
}

Features

  • Finished proposals
    • Array find from last
  • Stage 3 proposals
    • Array grouping
    • Change Array by copy
  • Stage 2 proposals
    • Iterator helpers
    • New Set methods
    • Map.prototype.emplace
    • Array.fromAsync
    • Array.isTemplateObject
    • Symbol.{ asyncDispose, dispose } for using statement
    • Symbol.metadataKey for decorators metadata proposal
  • Stage 1 proposals
    • Observable
    • New collections methods
    • .of and .from methods on collection constructors
    • compositeKey and compositeSymbol
    • Array filtering
    • Array deduplication
    • Getting last item from Array
    • Number.range
    • Number.fromString
    • Math extensions
    • Math.signbit
    • String.cooked
    • String.prototype.codePoints
    • Symbol.matcher for pattern matching
  • Stage 0 proposals
    • Function.prototype.unThis
    • Function.{ isCallable, isConstructor }
You might also like...

Functional-style Cloudflare Durable Objects with direct API calls from Cloudflare Workers and TypeScript support.

durable-apis Simplifies usage of Cloudflare Durable Objects, allowing a functional programming style or class style, lightweight object definitions, a

Jan 2, 2023

Fast, Bun-powered, and Bun-only(for now) Web API framework with full Typescript support.

Fast, Bun-powered, and Bun-only(for now) Web API framework with full Typescript support.

Zarf Fast, Bun-powered, and Bun-only(for now) Web API framework with full Typescript support. Quickstart Starting with Zarf is as simple as instantiat

Dec 28, 2022

An Obsidian plugin to grab all yaml fields from all files into a dataframe

Metadataframe Metadataframe allows you to get all metadata from your vault into CSV file. With CSV in-hand, you can do any data analysis you want with

Sep 15, 2022

All the Fake Data for All Your Real Needs 🙂

All the Fake Data for All Your Real Needs 🙂

All the Fake Data for All Your Real Needs 🙂 Run it on Stackblitz Installation npm i @ngneat/falso yarn add @ngneat/falso Methods randT(arr: T[]):

Dec 29, 2022

Foot Locker is an online store specialized in selling shoes of all kinds, where you can find all the shoes you want

Foot Locker is an online store specialized in selling shoes of all kinds, where you can find all the shoes you want

Foot Locker Links 🖇 Heroku link Adobe XD link Description Foot Locker is an online store specialized in selling shoes of all kinds, where you can fin

Apr 16, 2022

Script to fetch all NFT owners using moralis API. This script output is a data.txt file containing all owner addresses of a given NFT and their balances.

Script to fetch all NFT owners using moralis API. This script output is a data.txt file containing all owner addresses of a given NFT and their balances.

🔎 Moralis NFT Snapshot Moralis NFT API will only return 500 itens at a time when its is called. For that reason, a simple logic is needed to fetch al

Jun 23, 2022

This is a simple web application of a To-do List in which you can add, remove and edit all your tasks and also you can mark each task as completed and delete all completed ones.

To-Do List A simple web application of a to do list Built With HTML, CSS, JS, ES6 & Webpack Getting Started In this repository I created To-Do List SP

Apr 11, 2022

All-in-one solution for configuring ESLint in all of your projects

All-in-one solution for configuring ESLint in all of your projects

✨ All-in-one solution for configuring ESLint in all of your projects ✨ ⚠️ May not work in your project. This is related to eslint module resolution pr

Nov 28, 2022

GraphQL Hive provides all the tools the get visibility of your GraphQL architecture at all stages, from standalone APIs to composed schemas (Federation, Stitching)

GraphQL Hive GraphQL Hive provides all the tools the get visibility of your GraphQL architecture at all stages, from standalone APIs to composed schem

Dec 21, 2022
Join the GitHub Graduation Yearbook and "walk the stage" on June 11.

GitHub Graduation-2022 Available Translations ?? Pt-BR zh-CN 中文 日本 Русский Korean Indonesian Español (España) Español (México) Polski Filipino Türkçe

GitHub Education 1.5k Dec 26, 2022
GitHub and Markdown-Based CMS for Blogs. EXPERIMENTAL and in the "Idea" stage. I have no clue if this is feasible.

Turborepo starter This is an official pnpm starter turborepo. What's inside? This turborepo uses pnpm as a package manager. It includes the following

David Taing 2 Oct 13, 2022
Query for CSS brower support data, combined from caniuse and MDN, including version support started and global support percentages.

css-browser-support Query for CSS browser support data, combined from caniuse and MDN, including version support started and global support percentage

Stephanie Eckles 65 Nov 2, 2022
Persistent key/value data storage for your Browser and/or PWA, promisified, including file support and service worker support, all with IndexedDB. Perfectly suitable for your next (PWA) app.

BrowstorJS ?? ?? ?? Persistent key/value data storage for your Browser and/or PWA, promisified, including file support and service worker support, all

Nullix 8 Aug 5, 2022
Hacktoberfest is all about meeting up all brains. In this repository we are planning to come with many ideas and works. You all can share your ides/works here.

Hacktoberfest Submit your Work Hacktoberfest is all about meeting up all brains. In this repository we are planning to come with many ideas and works.

Chinmay Patil 3 Oct 5, 2022
A website for tracking community support for BIP21 QR codes that support on-chain and lightning bitcoin payments.

BIP21 Microsite This is a WIP microsite to promote the usage of a BIP21 payment URI QR code that can include lightning invoices or offers. Wallet supp

Stephen DeLorme 16 Nov 27, 2022
History.js gracefully supports the HTML5 History/State APIs (pushState, replaceState, onPopState) in all browsers. Including continued support for data, titles, replaceState

History.js gracefully supports the HTML5 History/State APIs (pushState, replaceState, onPopState) in all browsers. Including continued support for data, titles, replaceState. Supports jQuery, MooTools and Prototype.

Browser State 10.8k Dec 26, 2022
A professional truffle solidity template with all necessary libraries that support developer to develop, debug, test, deploy solidity smart contract

solidity-truffle-template A professional truffle solidity template with necessary libraries that support to develop, compile, test, deploy, upgrade, v

ChimGoKien 6 Nov 4, 2022
Simple, lightweight at-runtime type checking functions, with full TypeScript support

pheno Simple, lightweight at-runtime type checking functions, with full TypeScript support Features Full TypeScript integration: TypeScript understand

Lily Scott 127 Sep 5, 2022
An idiomatic way to enforce values not to be null nor undefined, with first-class support for TypeScript

nullthrows An idiomatic way to enforce values not to be null or undefined, with first-class support for TypeScript. Very lightweight with no dependenc

Expo 4 Jul 23, 2022