dts-cli
node-app-store-connect-api
Our great sponsors
dts-cli | node-app-store-connect-api | |
---|---|---|
4 | 1 | |
426 | 36 | |
1.6% | - | |
5.5 | 5.5 | |
1 day ago | 5 months ago | |
TypeScript | JavaScript | |
MIT License | ISC License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
dts-cli
-
I need urgent help building and publishing a package using TSDX?
Try dts-cli. It’s a fork of tsdx that is still active.
- TypeScript is terrible for library developers
-
Creating a React Component Library
Try this instead https://github.com/weiran-zsd/dts-cli is up to date version of tsdx that's designed for publish react libraries, or use Vite with library mode as an alternative, or Parcel has a library mode to do the same
-
Exporting a component library based on CRA - babel or typescript to create the bundle?
Be aware of this discussion. It appears that this library is not maintained actively. I migrated few of my libraries to dts-cli (it is a fork of tsdx)
node-app-store-connect-api
-
TypeScript is terrible for library developers
Here's a perfect example. I maintain a simple Node library designed to connect to Apple's App Store Connect API. https://github.com/dfabulich/node-app-store-connect-api
It accepts, as a parameter, an URL for Apple's REST API. My library handles authentication, and returns the parsed JSON result, with a handful of tweaks to make the API more usable in JavaScript.
Depending on which URL you request, you'll get different result object back. You could get a single object in response, or an array of objects, and the type of returned objects is different for each URL type.
How would you add TypeScript types to this API? Well, Apple provides an OpenAPI documentation of all of their URLs, which I could use to autogenerate types, but then, how would I handle all of those types in response to the user's string input?
Well, it turns out that TypeScript is so amazingly fancy that you can write very clever code to parse strings at compile time, extracting parameter types etc. from string literal types. https://lihautan.com/extract-parameters-type-from-string-lit...
The documentation explains how an API like this:
app.get('/purchase/[shopid]/[itemid]/args/[...args]')
What are some alternatives?
tsdx - Zero-config CLI for TypeScript package development
TypeScript - TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
typescript-rollup - A Single-Page Application(SPA) built using TypeScript, Rollup.js, and Web Dev Server
pandas-stubs - Public type stubs for pandas
rollup-plugin-typescript2 - Rollup plugin for typescript with compiler errors.
reselect - Selector library for Redux
chrome-extension-tools - Bundling Chrome Extensions can be pretty complex. It doesn't have to be.
flow-typed - A central repository for Flow library definitions
electron-vite-vue - 🥳 Really simple Electron + Vite + Vue boilerplate.
rollup-plugin-ts - A TypeScript Rollup plugin that bundles declarations, respects Browserslists, and enables seamless integration with transpilers such as babel and swc
GoJS, a JavaScript Library for HTML Diagrams - JavaScript diagramming library for interactive flowcharts, org charts, design tools, planning tools, visual languages.