gem_rbs_collection
DefinitelyTyped
gem_rbs_collection | DefinitelyTyped | |
---|---|---|
5 | 161 | |
270 | 49,414 | |
0.4% | 0.7% | |
9.5 | 10.0 | |
3 days ago | 5 days ago | |
Ruby | TypeScript | |
MIT License | GNU General Public License v3.0 or later |
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.
gem_rbs_collection
-
A decent VS Code and Ruby on Rails setup
I saw no mention of RBS+Steep, the latter providing a LSP. I use it a lot and very much like it, although it's still young and needs love, but it's making good, steady progress! I've been very pleasantly surprised by some of the crazy things Steep can catch, completely statically!
You appear to be working on projects with Sorbet (which I tried to like but found it fell short in practice, notably outside of the app use case i.e it's mostly useless for gems) so it may be a tall order to try on those. Maybe you can give RBS+Steep a shot on some small project?
RBS: https://github.com/ruby/rbs
RBS collection (for those gems that don't ship RBS signatures in `sig`, integrates with bundler): https://github.com/ruby/gem_rbs_collection
Steep: https://github.com/soutaro/steep
VS Code: https://github.com/soutaro/steep-vscode
Sublime Text: https://github.com/sublimelsp/LSP
Vim (I'm working on it): https://github.com/dense-analysis/ale/pull/4671
-
Is anyone using RBS?
For now there's a ruby/gem_rbs_collection repo now that's been started to grow a collection of signatures that RBS can pull from.
-
RBS introduced manifest.yaml
rbs collection detects the dependencies from Gemfile.lock. For example, if your Gemfile has an entry, gem 'rails', rbs collection finds dependencies gems, such as activesupport, railties, nokogiri and so on, from Gemfile.lock. Then it installs RBSs from ruby/gem_rbs_collection repository.
-
The future of rbs collection
Currently, rbs collection downloads RBSs with git clone from ruby/gem_rbs_collection GitHub repository.
-
rbs collection was released!
# Download sources sources: - name: ruby/gem_rbs_collection remote: https://github.com/ruby/gem_rbs_collection.git revision: main repo_dir: gems # A directory to install the downloaded RBSs path: .gem_rbs_collection gems: # Skip loading rbs gem's RBS. # It's unnecessary if you don't use rbs as a library. - name: rbs ignore: true # 👮👮👮 Add the following lines - name: pathname - name: logger - name: mutex_m - name: date - name: monitor - name: singleton - name: tsort - name: time - name: set
DefinitelyTyped
-
TypeScript's progressive adoption strategy for front-end projects
Sometimes, the community will provide unofficial type definitions. You can find it in the DefinitelyTyped repository (https://github.com/DefinitelyTyped/DefinitelyTyped), or search for @types/library-name on GitHub.
-
Show HN: 2048 turned 10 this year, I built an updated version to celebrate
https://github.com/DefinitelyTyped/DefinitelyTyped/commit/4b...
It's still there to this date, but I've lost my TS port in the sands of time.
-
Learn PHP the Right Way
> I really loved PHP, but now with go+templ (https://templ.guide) I personally don't have a use-case for PHP anymore, but that doesn't mean it's irrelevant for the world.
This is the first time I've heard of Templ. It looks cool and it was really easy to set up. Apparently there are IDE extensions to enable syntax highlighting and HTML auto-completion, but is there a way to type check the templates? One of the things I love about JSX as a templating language is that errors in your markup get reported as type errors [1]. If I write `` instead of `` and run `tsc --noEmit --watch`, TypeScript will complain until I fix the issue. You can even extend the types to support your own HTML custom elements.
[1] https://github.com/DefinitelyTyped/DefinitelyTyped/blob/mast...
-
⚛️ Explaining React's Types
Prior to React 18, it used to include an implicit children prop, making it suitable for components expected to have children. For a long time, though, the implicit children prop type has been removed according to React 18's type changes.
-
Introduction to TypeScript — What is TypeScript?
Additionally, because TypeScript has a well established and widely used install-base, there are already many different definition files in the wild for supporting non-TypeScript supporting projects. One of the more extensive collections of these typings lives at the DefinitelyTyped repository, which publishes the package's community typings under the package names @types/your-package-name (where your-package-name is the name of the project you're looking for typings of) that you can look for on your package manager.
-
5 Resources Each TypeScript Developer Should Know About
View on GitHub
- DefinitelyTyped
-
Show HN: OpenAPI DevTools – Chrome ext. that generates an API spec as you browse
Firefox maintain a library for unified extension API https://github.com/mozilla/webextension-polyfill
Their type definition for HAR request isn't exported https://github.com/DefinitelyTyped/DefinitelyTyped/blob/mast...
-
Typescript - Union types e type guards
type NumberOrString = number | string; type Status = "idle" | "loading" | "success" | "failure" // React useState, can receive a value or a function as parameter to serve as initial value. // https://github.com/DefinitelyTyped/DefinitelyTyped/blob/a03856975a17eba524739676affbf70ac4078176/types/react/v17/index.d.ts#L920 function useState(initialState: S | (() => S)): [S, Dispatch>];
- If you ever get called out for using long type names, remember this exists
What are some alternatives?
rbs - Type Signature for Ruby
supabase-js - An isomorphic Javascript client for Supabase. Query your Supabase database, subscribe to realtime events, upload and download files, browse typescript examples, invoke postgres functions via rpc, invoke supabase edge functions, query pgvector.
typings - *DEPRECATED* The TypeScript Definition Manager
middy - 🛵 The stylish Node.js middleware engine for AWS Lambda 🛵
typeprof - An experimental type-level Ruby interpreter for testing and understanding Ruby code
vite-tsconfig-paths - Support for TypeScript's path mapping in Vite