(obj: unknown)
| 61 | ): obj is O & Component => obj instanceof Vue || isVueComponent(obj); |
| 62 | |
| 63 | const isToastContent = (obj: unknown): obj is ToastContent => |
| 64 | // Ignore undefined |
| 65 | !isUndefined(obj) && |
| 66 | // Is a string |
| 67 | (isString(obj) || |
| 68 | // Regular Vue instance or component |
| 69 | isVueInstanceOrComponent(obj) || |
| 70 | // Object with a render function |
| 71 | hasRenderFunction(obj) || |
| 72 | // JSX template |
| 73 | isJSX(obj) || |
| 74 | // Nested object |
| 75 | isToastComponent(obj)); |
| 76 | |
| 77 | const isDOMRect = (obj: unknown): obj is DOMRect => |
| 78 | isObject(obj) && |
no test coverage detected
searching dependent graphs…