Skip to content
No description, website, or topics provided.
JavaScript TypeScript Objective-C Python Java
Branch: master
Clone or download
Skn0tt Merge pull request #1 from Skn0tt/dependabot/npm_and_yarn/todo/lodash…
…-4.17.14

Bump lodash from 4.17.11 to 4.17.14 in /todo
Latest commit cc1f970 Jul 16, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
todo Bump lodash from 4.17.11 to 4.17.14 in /todo Jul 16, 2019
.gitignore Init Jul 3, 2019
README.md add link to blog post Jul 12, 2019

README.md

Talk: React and Typescript

This repository contains the corresponding code to my talk about React and TypeScript.

Example Code

function add(a, b) {
  return a + b;
}

const favNumber = add(31, 11);
function add(a: number, b: number): number {
  return a + b;
}

const favNumber: number = add(31, 11);
function add(a: number, b: number) {
  return a + b;
}

const favNumber = add(31, 11);
interface User {
  firstName: string;
  lastName: string;
  age: number;
  state: UserState;
}

enum UserState {
  ACTIVE,
  INACTIVE,
  INVITED,
}
interface FunkyUser extends User {
  isDancing: boolean;
}
type UserState =
  "active" |
  "inactive" |
  "invited";
class JavaLover implements User {
  private firstName: string;
  private lastName: string;
  private age: number;
  private state: UserState;
  
  getOpinion() {
    return [ "!!JAVA!1!" ];
  }
}
You can’t perform that action at this time.