orta / typescript-notes Goto Github PK
View Code? Open in Web Editor NEWHigh-level notes about TypeScript
High-level notes about TypeScript
I'm still not too sure on the value of unknown in the example above, because it's basically removed but it's a primitive I've never really needed to use.
Lots of interesting discussion on reddit
This is a good overview https://gist.github.com/OliverJAsh/381cd397008309c4a95d8f9bd31adcd7#js-terminology
JS -> TS -> TS (strict)
Could there be a way to say "if this import doesn't exist it's OK"
--
alternative, but more drastic - a package.json
could have "typeDependencies"
or "toolDependencies"
. Which is a bit meh.
An example: @dsherret wanted nameof
from C# see: https://github.com/dsherret/ts-nameof
I'd like to do a guided PR walkthrough video for PRs like:
E.g adding one strict mode flag
enum AB {
Hi
}
declare const a: AB
function helloWorld(a: AB) {
}
// has to be this
helloWorld(AB.Hi)
// can this be resolved?
helloWorld(.Hi)
keyof
instanceof
) which are like the complicatedy things you do once and forgetlike JSX is a unique area of TypeScript, could that be just one area of a code where TSC can know a lot more about a "type" of code.
What is a modern GJS app like? https://2017.guadec.org/wp-content/uploads/2017/06/Philip-Chimento-GUADEC-2017-Modern-Javascript-in-GNOME.pdf
GJS Repo: https://gitlab.gnome.org/GNOME/gjs/-/blob/master/doc/Home.md
Bootstrap a project:
Types:
Testing:
Tutorial:
Example code showing a window
#!/usr/bin/gjs
const Gtk = imports.gi.Gtk;
Gtk.init(null);
let win = new Gtk.Window();
win.connect("delete-event", Gtk.main_quit);
win.show_all();
Gtk.main();
Devs hang out in matrix somewhere.
Notes:
microsoft/TypeScript#41165 (comment) is a pretty good overview of how comments get pulled out
Six main navigation components
Then there is:
Optional, but maybe worth it? (if so, thinking from day one is useful)
Not been thought of too hard yet, but some ideas
I've done redesigns of a few big JS project homepages:
So, I feel pretty comfortable getting reasonable fidelity mockups and presenting those
to some MS designers who can help make it fit better.
Website may come out before new handbook, so have to build with the 2nd in mind.
Note that the URLs will change across handbooks, so ideally we keep a forwaring map of the closest approximation of pages
A general idea of the guides heirarchy
From Scratch
From an existing project
Improve your tooling without adding adding dependencies
Integration with build tools
Converting a JS project to TS (current guide)
Migrate the content of the definitely typed website into TS and update it
A set of documents which guide you through turning on some of the strict flags in the tsconfig explaining with examples how they affect your code
noImplicitAny
noImplicitReturns
strictNullChecks
strictFunctionTypes
Same as current, maybe start encouraging folks write their own non-release notes post in there?
Embrace, extend and enhance typescript-play
. I audited the code last night
and it's pretty solid, and really simple.
Things we like which it supports:
Extend:
Stretch goals:
Talks to the scope of people using TS, how you can meet others to talk to it or learn more
Awesome and amazing work.
Clean file struct and friendly explanation.
In some areas, I think this repo is better than wiki for those who want to contribute. Maybe this repo would not be "official", but I definitely want to take a look at this any time I meet a new question or forget something.
https://www.youtube.com/watch?v=wSdV1M7n4gQ
Basically the first 20m are getting to why there is a binding layer in TSC
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.