Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
dimensionInvariant: (value, field) =>
isAnimated(value)
? invariant(false, "GL.Surface "+field+" prop cannot be an Animated object. Use GL.AnimatedSurface instead")
: invariant(typeof value === "number" && value > 0, "GL.Surface: "+field+" prop must be a strictly positive number")
}),
dimensionInvariant: (value, field) =>
invariant(
isAnimated(value) || typeof value === "number" && value > 0,
"GL.AnimatedSurface: "+field+" must be a strictly positive number OR an Animated object"
)
}),