Skip to content

@drawerly/react / resolveDrawerPredicate

resolveDrawerPredicate() ​

ts
function resolveDrawerPredicate<TInstance>(
   predicate, 
   instance, 
   fallback): boolean;

Resolves a DrawerPredicate against a drawer instance.

Type Parameters ​

TInstance ​

TInstance

Parameters ​

predicate ​

DrawerPredicate<TInstance> | undefined

instance ​

TInstance

fallback ​

boolean = true

Returns ​

boolean

Released under the MIT License.