Skip to content

Instantly share code, notes, and snippets.

View fleshka779's full-sized avatar

Vladislav fleshka779

  • DataArt
  • Ukraine
View GitHub Profile
{"lastUpload":"2020-03-12T11:56:17.366Z","extensionVersion":"v3.4.3"}
@fleshka779
fleshka779 / hero.ts
Created March 31, 2017 21:18 — 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;
ECH Framework