Skip to content

basalt / search/src / syncRule

Function: syncRule() ​

> syncRule<K>(rule): SyncRule

Defined in: search/src/plugin.ts:41

Type-checks a sync rule against its hook, then erases the generic.

Type Parameters ​

K ​

K extends string

Parameters ​

rule ​

SyncRule<K>

Returns ​

SyncRule

Released under the MIT License.