-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: break up incoherent GetApply function into SyncImpl record
- Loading branch information
1 parent
b90ae08
commit 1455298
Showing
4 changed files
with
82 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
/** | ||
* @callback GetApplySync | ||
* @param {any} target | ||
* @param {string | symbol | number | null} prop the property or method name, | ||
* null if this is a function call of target | ||
* @param {Array<any>} [methodArgs] any function or method arguments | ||
* @typedef {Object} SyncImpl | ||
* @property {(target: any, args: Array<any>) => any} applyFunction function | ||
* application | ||
* @property {(target: any, method: string | symbol | number, args: Array<any>) | ||
* => any} applyMethod method invocation, which is an atomic lookup of method and | ||
* apply | ||
* @property {(target: any, prop: string | symbol | number) => any} get property | ||
* lookup | ||
*/ | ||
|
||
/** @typedef {import('./ts-types').Sync} Sync */ | ||
|
||
/** | ||
* @template T | ||
* @typedef {import('./ts-types').Syncable} Syncable | ||
* @typedef {import('./ts-types').Syncable<T>} Syncable | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters