vendor tsgo
This commit is contained in:
15
tools/tsgo/internal/project/dirty/interfaces.go
Normal file
15
tools/tsgo/internal/project/dirty/interfaces.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package dirty
|
||||
|
||||
type Cloneable[T any] interface {
|
||||
Clone() T
|
||||
}
|
||||
|
||||
type Value[T any] interface {
|
||||
Value() T
|
||||
Original() T
|
||||
Dirty() bool
|
||||
Change(apply func(T))
|
||||
ChangeIf(cond func(T) bool, apply func(T)) bool
|
||||
Delete()
|
||||
Locked(fn func(Value[T]))
|
||||
}
|
||||
Reference in New Issue
Block a user