Skip to content

Commit

Permalink
style(test::model::typeguards): add comments noting that a type is me…
Browse files Browse the repository at this point in the history
…ant to be
  • Loading branch information
hasezoey committed Mar 3, 2023
1 parent 6f5adfa commit 6aa8f17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/models/typeguards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class IsRefTypeNestedObjectId {

export class IsRefType {
@prop({ ref: IsRefTypeNestedString, type: String })
public nestedString?: Ref<IsRefTypeNestedString>;
public nestedString?: Ref<IsRefTypeNestedString /* , string */>; // RefType not set, to know if automatic Ref is broken;

@prop({ ref: IsRefTypeNestedObjectId })
public nestedObjectId?: Ref<IsRefTypeNestedObjectId>;
Expand All @@ -24,7 +24,7 @@ export const IsRefTypeModel = getModelForClass(IsRefType);

export class IsRefTypeArray {
@prop({ ref: IsRefTypeNestedString, type: String })
public nestedString?: Ref<IsRefTypeNestedString>[];
public nestedString?: Ref<IsRefTypeNestedString /* , string */>[]; // RefType not set, to know if automatic Ref is broken;

@prop({ ref: IsRefTypeNestedString })
public nestedObjectId?: Ref<IsRefTypeNestedObjectId>[];
Expand Down

0 comments on commit 6aa8f17

Please sign in to comment.