Skip to content

Commit

Permalink
fix class name
Browse files Browse the repository at this point in the history
  • Loading branch information
benStre committed Jan 18, 2024
1 parent fadd762 commit c2356bd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js_adapter/js_class_adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -387,8 +387,8 @@ export class Decorators {
if (typeof params[0] == "string" || params[0] instanceof Type) {
type = normalizeType(params[0], false, "ext");
}
else if (original_class[METADATA]?.[Decorators.FORCE_TYPE]?.constructor) type = original_class[METADATA]?.[Decorators.FORCE_TYPE]?.constructor.replace(/^_/, '') // remove leading _ from type name
else type = Type.get("ext", original_class.name);
else if (original_class[METADATA]?.[Decorators.FORCE_TYPE]?.constructor) type = original_class[METADATA]?.[Decorators.FORCE_TYPE]?.constructor
else type = Type.get("ext", original_class.name.replace(/^_/, '')); // remove leading _ from type name


// return new templated class
Expand Down Expand Up @@ -419,8 +419,8 @@ export class Decorators {
if (typeof params[0] == "string" || params[0] instanceof Type) {
type = normalizeType(params[0], false, "ext");
}
else if (original_class[METADATA]?.[Decorators.FORCE_TYPE]?.constructor) type = original_class[METADATA]?.[Decorators.FORCE_TYPE]?.constructor.replace(/^_/, '') // remove leading _ from type name
else type = Type.get("ext", original_class.name);
else if (original_class[METADATA]?.[Decorators.FORCE_TYPE]?.constructor) type = original_class[METADATA]?.[Decorators.FORCE_TYPE]?.constructor
else type = Type.get("ext", original_class.name.replace(/^_/, '')); // remove leading _ from type name

let callerFile:string|undefined;

Expand Down

0 comments on commit c2356bd

Please sign in to comment.