MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / getBaseClasses

Function getBaseClasses

packages/components/src/utils.ts:127–145  ·  view source on GitHub ↗
(targetClass: any)

Source from the content-addressed store, hash-verified

125 * @returns {string[]}
126 */
127export const getBaseClasses = (targetClass: any) => {
128 const baseClasses: string[] = []
129 const skipClassNames = ['BaseLangChain', 'Serializable']
130
131 if (targetClass instanceof Function) {
132 let baseClass = targetClass
133
134 while (baseClass) {
135 const newBaseClass = Object.getPrototypeOf(baseClass)
136 if (newBaseClass && newBaseClass !== Object && newBaseClass.name) {
137 baseClass = newBaseClass
138 if (!skipClassNames.includes(baseClass.name)) baseClasses.push(baseClass.name)
139 } else {
140 break
141 }
142 }
143 }
144 return baseClasses
145}
146
147/**
148 * Serialize axios query params

Callers 15

constructorMethod · 0.90
constructorMethod · 0.90
constructorMethod · 0.90
constructorMethod · 0.90
constructorMethod · 0.90
constructorMethod · 0.90
constructorMethod · 0.90
constructorMethod · 0.90
constructorMethod · 0.90
constructorMethod · 0.90
constructorMethod · 0.90
constructorMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected