abacl
Version:
Attribute Based Access Control Library
17 lines (16 loc) • 751 B
TypeScript
import { PropType } from '../types';
/**
* The function `isStrict` checks if a given property type matches a strict mode, returning a boolean
* value.
*
* @param {PropType} prop - The `prop` parameter is of type `PropType`. It represents a property that
* is being checked for strictness.
*
* @param {boolean | string} strict - The `strict` parameter is a boolean or string that determines
* whether the code should be executed in strict mode. If it is a boolean, the function will return the
* value of `strict`. If it is a string, the function will check if the first character of the `prop`
* parameter is included
*
* @returns a boolean value.
*/
export declare const isStrict: (prop: PropType, strict?: boolean | string) => boolean;