Coder Social home page Coder Social logo

typescript-notes's People

Contributors

andrewbranch avatar gabritto avatar haroenv avatar imteekay avatar orta avatar sandersn avatar sroucheray avatar zzzen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

typescript-notes's Issues

unknown vs any

playground

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

Well scoped PRs that added interesting features

I'd like to do a guided PR walkthrough video for PRs like:

TypeScript playground ideas

  • Should support importing @types - so you can make an example working with the node types etc
  • templates could be improved ( could be scoped per type of projects (React/Node/Angular/jQuery) etc ) which could come with the types above
  • snippets (like keyof instanceof ) which are like the complicatedy things you do once and forget
  • Needs a way to format with prettier
  • URLs can be broken in certain markdown parsers

GJS - GTK bindings for JS/TS

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:

  • ElementaryOS does not come with gjs installed by default

website ideas

Website

Nav

Six main navigation components

  • Homepage
  • Handbook
  • Guides
  • Blog
  • Playground
  • Community

Then there is:

  • Search (mostly focused on the handbook/guides could be built at build-time)

Optional, but maybe worth it? (if so, thinking from day one is useful)

  • Translations

Homepage

Not been thought of too hard yet, but some ideas

  • Own the unofficial-ts logo and make it official with a tiny tweak or two
  • Note the breadth of DT typing of community
  • Note the developer survey results for TS

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.

Handbook

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

Guides

A general idea of the guides heirarchy

Getting Started

From Scratch

  • With node
  • With aspx
  • For the browser
  • With Azure (?!?!)
  • Projects which support ts out of the box (react/angular/jest etc)

From an existing project

  • Improve your tooling without adding adding dependencies

  • Integration with build tools

    • Webpack
    • Babel
    • TSC
  • Converting a JS project to TS (current guide)

    • Common migration patterns

Building at Scale

Definitely Typed

Migrate the content of the definitely typed website into TS and update it

  • What is Definitely Typed?
  • How do I add types to another library
    • Adding a library to DT
    • Adding types to a library

TypeSticter

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

  • for noImplicitAny
  • for noImplicitReturns
  • for strictNullChecks
  • for strictFunctionTypes

Blog

Same as current, maybe start encouraging folks write their own non-release notes post in there?

Playground

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:

  • Multiple TS versions
  • Strict by default

Extend:

  • Nightly TS version (needs coordination with monaco-typescript which kinda controls which versions are available AT<>)
  • Automatic type acquisition for imports
  • More examples
  • Make the compiled output semi-permenent, you can ask to see the compiled output
  • Show tips
Export to
  • convert current code to d.ts
  • issue template ( which has a link for the nightly and prod release)
  • Export to a Gist
Open code in
  • Code Sandbox
  • AST Explorer
  • ts-ast-explorer

Stretch goals:

  • Add support for text snippets
  • replace the 2nd panel with an inspector which shows rich information about current symbol selected
  • personal favourites / history
  • create an edge extension that adds a run in playground anytime you see TS code blocks in markdown on github

Community

Talks to the scope of people using TS, how you can meet others to talk to it or learn more

  • Meetups around the world
  • Books
  • TypeScript YouTube videos (Talks from us & others)

Add a link of this repo in TS wiki

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.