MCPcopy
hub / github.com/Maronato/vue-toastification / isToastContent

Function isToastContent

src/ts/utils.ts:63–75  ·  view source on GitHub ↗
(obj: unknown)

Source from the content-addressed store, hash-verified

61): obj is O & Component => obj instanceof Vue || isVueComponent(obj);
62
63const 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
77const isDOMRect = (obj: unknown): obj is DOMRect =>
78 isObject(obj) &&

Callers 2

utils.spec.tsFile · 0.90
isToastComponentFunction · 0.85

Calls 6

isUndefinedFunction · 0.85
isStringFunction · 0.85
isVueInstanceOrComponentFunction · 0.85
hasRenderFunctionFunction · 0.85
isJSXFunction · 0.85
isToastComponentFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…