BlockSuite API Documentation / @blocksuite/block-std / PropTypes
Variable: PropTypes
const
PropTypes:object
Type declaration
array()
array: (
value
) =>value is any[]
Parameters
value
unknown
Returns
value is any[]
arrayOf()
arrayOf: (
validator
) => (value
) =>boolean
Parameters
validator
ValidatorFunction
Returns
Function
Parameters
value
unknown
Returns
boolean
boolean()
boolean: (
value
) =>value is boolean
Parameters
value
unknown
Returns
value is boolean
instanceOf()
instanceOf: (
expectedClass
) => (value
) =>boolean
Parameters
expectedClass
Constructor
Returns
Function
Parameters
value
unknown
Returns
boolean
number()
number: (
value
) =>value is number
Parameters
value
unknown
Returns
value is number
object()
object: (
value
) => value is null | object
Parameters
value
unknown
Returns
value is null | object
recordOf()
recordOf: (
validator
) => (value
) =>boolean
Parameters
validator
ValidatorFunction
Returns
Function
Parameters
value
unknown
Returns
boolean
string()
string: (
value
) =>value is string
Parameters
value
unknown
Returns
value is string
Defined in
packages/framework/block-std/src/view/decorators/required.ts:8