Skip to content

Commit

Permalink
Revert "Deprecate szokodiakos/typegoose, use hasezoey/typegoose"
Browse files Browse the repository at this point in the history
This reverts commit ad1125a.
because this fork is **not** moved/deprecated
  • Loading branch information
hasezoey committed Sep 6, 2019
1 parent 99f6be0 commit cf56e93
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 22 deletions.
14 changes: 0 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@
# This Repository got moved

Please use [hasezoey's fork](https://github.com/hasezoey/typegoose) to be up-to-date
Please dont create new issues & pull request anymore, thanks

<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>

# Typegoose

[![Build Status](https://travis-ci.org/szokodiakos/typegoose.svg?branch=master)](https://travis-ci.org/szokodiakos/typegoose)
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "typegoose",
"name": "@hasezoey/typegoose",
"version": "5.9.1",
"description": "Define Mongoose models using TypeScript classes.",
"main": "lib/typegoose.js",
Expand All @@ -23,7 +23,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/szokodiakos/typegoose.git"
"url": "https://github.com/hasezoey/typegoose.git"
},
"types": "lib/typegoose.d.ts",
"typings": "lib/typegoose.d.ts",
Expand Down Expand Up @@ -61,4 +61,4 @@
"dependencies": {
"reflect-metadata": "^0.1.13"
}
}
}
3 changes: 0 additions & 3 deletions src/typegoose.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import * as mongoose from 'mongoose';
import 'reflect-metadata';

import { deprecate } from 'util';
import { constructors, hooks, methods, models, plugins, schema, virtuals } from './data';

/* exports */
Expand All @@ -14,8 +13,6 @@ export * from '.';
export * from './typeguards';
export { getClassForDocument } from './utils';

deprecate(() => undefined, 'This Package got moved, please use `@hasezoey/typegoose` | github:hasezoey/typegoose')();

export type InstanceType<T> = T & mongoose.Document;
export type ModelType<T> = mongoose.Model<InstanceType<T>> & T;

Expand Down
2 changes: 2 additions & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import * as mongoose from 'mongoose';

import { constructors, schema } from './data';
import { Ref } from './prop';
import { InstanceType } from './typegoose';

/**
* Returns true, if it includes the Type
Expand Down

0 comments on commit cf56e93

Please sign in to comment.