Skip to content

Commit

Permalink
on meta
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx committed Jun 12, 2024
1 parent 66d1b57 commit 4adb83e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
8 changes: 2 additions & 6 deletions packages/@glimmer/validator/lib/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,13 @@ export function tagFor<T extends object>(

if (tag === undefined) {
tag = createUpdatableTag();
tag.meta = { propertyKey: key, obj: object };

Check failure on line 67 in packages/@glimmer/validator/lib/meta.ts

View workflow job for this annotation

GitHub Actions / Linting

Property 'meta' does not exist on type 'UpdatableTag'.

Check failure on line 67 in packages/@glimmer/validator/lib/meta.ts

View workflow job for this annotation

GitHub Actions / Linting

Cannot find name 'object'. Did you mean 'Object'?
tags.set(key, tag);
tag.propertyKey = key;
tag.object = obj;
}

return tag;
}

export function infoForTag(tag: Tag) {
return {
object: tag.object,
propertyKey: tag.propertyKey,
};
return tag.meta;

Check failure on line 75 in packages/@glimmer/validator/lib/meta.ts

View workflow job for this annotation

GitHub Actions / Linting

Property 'meta' does not exist on type 'Tag'.
}
4 changes: 1 addition & 3 deletions packages/@glimmer/validator/lib/validators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,7 @@ export class MonomorphicTagImpl<T extends MonomorphicTagId = MonomorphicTagId> {
private isUpdating = false;
public subtag: Tag | Tag[] | null = null;
private subtagBufferCache: Revision | null = null;

public propertyKey: string | null = null;
public object: any = null;
public meta: any = null;

[TYPE]: T;

Expand Down

0 comments on commit 4adb83e

Please sign in to comment.