Method
onChange
(
keyOrType: KeyOrType,
fn: (data: IPublicTypeEditorGetResult<T, KeyOrType>) => void,
)
Source from the content-addressed store, hash-verified
| 233 | } |
| 234 | |
| 235 | onChange<T = undefined, KeyOrType extends IPublicTypeEditorValueKey = any>( |
| 236 | keyOrType: KeyOrType, |
| 237 | fn: (data: IPublicTypeEditorGetResult<T, KeyOrType>) => void, |
| 238 | ): () => void { |
| 239 | this.setWait(keyOrType, fn); |
| 240 | return () => { |
| 241 | this.delWait(keyOrType, fn); |
| 242 | }; |
| 243 | } |
| 244 | |
| 245 | register(data: any, key?: IPublicTypeEditorValueKey): void { |
| 246 | this.context.set(key || data, data); |
Callers
nothing calls this directly
Tested by
no test coverage detected