Skip to content

Instantly share code, notes, and snippets.

@KevinTCoughlin
Created February 10, 2014 13:06
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KevinTCoughlin/8915600 to your computer and use it in GitHub Desktop.
Save KevinTCoughlin/8915600 to your computer and use it in GitHub Desktop.
TypeScript + Firebase
# Getting Started with TypeScript and Firebase
## What is TypeScript
## Creating a new TypeScript Project
* Open Visual Studio 2013
* Navigate to NuGet plugins for this solution
Nuget plugins for this solution -> Firebase definitely typed
## What is a TypeScript definition file (*.d.ts)
We need to reference the definition file and (include the js file)?
## Download Firebase's TypeScript Definition File
## Example Usage
class Database {
db: Firebase;
constructor() {
this.db = new Firebase('https://ecma.firebaseio.com/');
}
}
var db = new Database(); new Firebase('https://ecma.firebaseio.com/')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment