Skip to content

Commit

Permalink
style(utils::deprecate): update tsdoc to be better readable
Browse files Browse the repository at this point in the history
  • Loading branch information
hasezoey committed Sep 12, 2021
1 parent ccfbca0 commit 9d49c43
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/internal/utils.ts
Expand Up @@ -645,11 +645,10 @@ export function isConstructor(obj: any): obj is AnyParamConstructor<any> {
return typeof obj === 'function' && !isNullOrUndefined(obj.prototype?.constructor?.name);
}

// Below are function to wrap NodeJS functions for client compatability (eslint ignore is needed)

// /**
// * Execute util.deprecate or when !process console log
// * (if client, it dosnt cache which codes already got logged)
// * Execute util.deprecate or when "process" does not exist use "console.log"
// * (if "process" does not exist, the codes are not cached, and are always logged again)
// * This Function is here to try to make typegoose compatible with the browser (see https://github.com/typegoose/typegoose/issues/33)
// */
// eslint-disable-next-line @typescript-eslint/ban-types
// export function deprecate<T extends Function>(fn: T, message: string, code: string): T {
Expand Down

0 comments on commit 9d49c43

Please sign in to comment.