Comments (2)
Hmm. Seems like we might be able to find a build tool out there that generated typescript types from these JSDoc annotations...
https://github.com/socketsupply/io/blob/master/fs/index.js#L68-L75
/**
* Asynchronously check access a file for a given mode calling `callback`
* upon success or error.
* @see {@link https://nodejs.org/dist/latest-v16.x/docs/api/fs.html#fsopenpath-flags-mode-callback}
* @param {string | Buffer | URL} path
* @param {string=} [mode = F_OK(0)]
* @param {function(err, fd)} callback
*/
I'm curious more generally why the Socket team has decided not to use Typescript though. It's such a lovely language. π
from socket.
There are some .d.ts
files that we have internally. The plan so far is to add types to the io
module. The existing type file is becoming out of date though as the APIs are changing rapidly.
I have been using a jsconfig.json file to good success.
A plan is to add types once the system
interface stabilizes.
from socket.
Related Issues (20)
- Propagate opt-in signals configured in 'socket.ini' to runtime webview
- The start script failed when use create-socket-app HOT 7
- With .mjs files, Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html" HOT 1
- Can one use socket supply P2P functionality in a react application, independently of the other socket supply functionalities. HOT 1
- Update `./bin/version.sh` to update all the dependancies
- P2P βcappletβ distribution
- bug: Install with curl fails to detect required deps
- bug: application_icon_config is not getting templated on android build HOT 1
- Support configurable window navigation response headers
- bug: fix repeating messages when using `alert`
- [Docs] Automate documentation for the CLI
- [Docs] Unified environments / how we make your stuff just work page
- Typos in Docs HOT 1
- [Bug] Vite dev server fails to load socket:* due to CORS HOT 7
- Improve installation setup for Linux HOT 1
- Application Specific Links
- Exception in IOS when rendering more complex views HOT 1
- [bug] URLs return 'null' as the origin when using 'socket:' protocol
- Calling createWindow crashes the app HOT 2
- How to build Windows .appx on Ubuntu? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from socket.