MCPcopy Create free account

hub / github.com/adopted-ember-addons/validated-changeset / functions

Functions232 in github.com/adopted-ember-addons/validated-changeset

Methodon
(eventName: string, callback: (...args: unknown[]) => unknown)
src/validated.ts:109
Methodon
(eventName: string, callback: (key: string) => unknown)
src/index.ts:157
Functionoptions
(_k: string, value: unknown)
test/index.test.ts:48
FunctionownKeys
(node: ProxyHandler)
src/utils/object-tree-node.ts:55
Functionpassword
(_k: string, value: unknown)
test/index.test.ts:30
FunctionpasswordConfirmation
( _k: string, newValue: unknown, _oldValue: unknown, { password: changedPassword }: { password
test/index.test.ts:33
FunctionpaulFunc
()
test/utils/flatten-validations.test.ts:27
Methodprepare
* Provides a function to run before emitting changes to the model. The * callback function must return a hash in the same shape: * * ``` *
src/index.ts:373
FunctionpropertyIsUnsafe
(target: any, key: string)
src/utils/merge-deep.ts:47
MethodpushErrors
* Manually push multiple errors to the changeset as an array. * key maybe in form 'name.short' so need to go deep * * @method pushErrors
src/validated.ts:456
MethodremoveError
* @method removeError
src/validated.ts:432
MethodremoveErrors
* @method removeError
src/validated.ts:444
Functionreservations
()
test/index.test.ts:3443
Methodrestore
* Restores a snapshot of changes and errors. This overrides existing * changes and errors. * * @method restore
src/validated.ts:511
Methodrollback
* Returns the changeset to its pristine state, and discards changes and * errors. * * @method rollback
src/validated.ts:339
MethodrollbackInvalid
* Discards any errors, keeping only valid changes. * * @public * @chainable * @method rollbackInvalid * @param {String} key optional ke
src/validated.ts:362
MethodsafeSet
* @property safeSet * @override
src/validated.ts:168
Functionsave
()
test/index.test.ts:96
Functionset
(targetBuffer, key, value /*, receiver*/)
src/validated.ts:755
Functionset
(node: ProxyHandler, key: string, value: unknown)
src/utils/object-tree-node.ts:67
Methodset
(targetBuffer, key, value /*, receiver*/)
src/index.ts:1174
Methodsnapshot
* Creates a snapshot of the changeset's errors and changes. * * @method snapshot
src/validated.ts:481
FunctiontestFunc
()
test/utils/flatten-validations.test.ts:5
Functionthen
()
test/utils/is-promise.test.ts:14
Methodtrigger
(...args: any[])
src/types/index.ts:25
Methodtrigger
(...args: T)
src/-private/notifier.ts:24
Methodunexecute
()
src/validated.ts:322
Methodvalidate
* @method validate
src/validated.ts:390
Methodvalidate
* Validates the changeset immediately against the validationMap passed in. * If no key is passed into this method, it will validate all fields on t
src/index.ts:597
Functionvalue
(_k: string, value: unknown)
test/index.test.ts:67
FunctionvillageFunc
()
test/utils/flatten-validations.test.ts:50
FunctionwrapInArray
(value: T | T[])
src/utils/wrap.ts:7
← previous201–232 of 232, ranked by callers