Function isValidDeviceList
isValidDeviceList( device: string | string[],): device is | DeviceSpec | (
"mobile" | "mobile-wide" | "tablet" | "desktop")
[] Parameters
- device: string | string[]
Returns device is DeviceSpec | ("mobile" | "mobile-wide" | "tablet" | "desktop")[]
Returns true if the given string is a valid device specification (including
"min <Device>"
, etc).Returns false for "", although if you passed "" in OnLayoutOptions it would accept it as specifying all devices.