|
|
@@ -1,11 +1,14 @@
|
|
|
/* @flow */
|
|
|
|
|
|
+import { no } from 'shared/util'
|
|
|
+
|
|
|
export type Config = {
|
|
|
preserveWhitespace: boolean,
|
|
|
optionMergeStrategies: { [key: string]: Function },
|
|
|
silent: boolean,
|
|
|
- isReservedTag: (x: string) => boolean,
|
|
|
- isUnknownElement: (x: string) => boolean,
|
|
|
+ isReservedTag: (x?: string) => boolean,
|
|
|
+ isUnknownElement: (x?: string) => boolean,
|
|
|
+ mustUseProp: (x?: string) => boolean,
|
|
|
_assetTypes: Array<string>,
|
|
|
_lifecycleHooks: Array<string>,
|
|
|
_maxUpdateCount: number,
|
|
|
@@ -34,13 +37,19 @@ const config: Config = {
|
|
|
* Check if a tag is reserved so that it cannot be registered as a
|
|
|
* component. This is platform-dependent and may be overwritten.
|
|
|
*/
|
|
|
- isReservedTag: _ => false,
|
|
|
+ isReservedTag: no,
|
|
|
|
|
|
/**
|
|
|
* Check if a tag is an unknown element.
|
|
|
* Platform-dependent.
|
|
|
*/
|
|
|
- isUnknownElement: _ => false,
|
|
|
+ isUnknownElement: no,
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Check if an attribute must be bound using property, e.g. value
|
|
|
+ * Platform-dependent.
|
|
|
+ */
|
|
|
+ mustUseProp: no,
|
|
|
|
|
|
/**
|
|
|
* List of asset types that a component can own.
|