Add comments to validateCommonOpts()
This commit is contained in:
parent
72ada325be
commit
64874d644b
1 changed files with 7 additions and 0 deletions
|
@ -23,6 +23,13 @@ import {propTypeSymbol} from './internals'
|
|||
// Composite types are not directly sequenceable yet. Their simple sub/ancestor props are.
|
||||
// We’ll provide a nice UX to manage keyframing of multiple sub-props.
|
||||
|
||||
/**
|
||||
* Validates the common options given to all prop types, such as `opts.label`
|
||||
*
|
||||
* @param fnCallSignature - See references for examples
|
||||
* @param opts - The common options of all prop types
|
||||
* @returns void - will throw if options are invalid
|
||||
*/
|
||||
const validateCommonOpts = (fnCallSignature: string, opts?: CommonOpts) => {
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
if (opts === undefined) return
|
||||
|
|
Loading…
Reference in a new issue