Skip to content
This repository has been archived by the owner on Jun 29, 2021. It is now read-only.

Commit

Permalink
Merge pull request #387 from hasezoey/deprecateoriginalrepo
Browse files Browse the repository at this point in the history
Deprecate szokodiakos/typegoose, use hasezoey/typegoose
  • Loading branch information
Ben305 committed Sep 6, 2019
2 parents ee37b68 + ad1125a commit 2e98d94
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# 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
2 changes: 1 addition & 1 deletion package-lock.json

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

3 changes: 3 additions & 0 deletions src/typegoose.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
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 @@ -13,6 +14,8 @@ 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: 0 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
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 2e98d94

Please sign in to comment.