Skip to content

Commit 627ac55

Browse files
authored
Add getter for value (#99)
1 parent d843d69 commit 627ac55

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/property.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,10 @@ export class Property<T extends Any> {
146146
return hasChanged;
147147
}
148148

149+
getCachedValue(): T | undefined {
150+
return this.value;
151+
}
152+
149153
/**
150154
* Sets this.value and makes adjustments to ensure that the value
151155
* is consistent with the type.

0 commit comments

Comments
 (0)