Skip to content

Instantly share code, notes, and snippets.

View katsu-o's full-sized avatar

katsu-o katsu-o

View GitHub Profile
@katsu-o
katsu-o / hero.ts
Created September 10, 2018 05:04 — forked from brennanMKE/hero.ts
Example of Mongoose with TypeScript and MongoDb
import * as mongoose from 'mongoose';
export let Schema = mongoose.Schema;
export let ObjectId = mongoose.Schema.Types.ObjectId;
export let Mixed = mongoose.Schema.Types.Mixed;
export interface IHeroModel extends mongoose.Document {
name: string;
power: string;