MCPcopy Create free account

hub / github.com/ThePrimeagen/undefined / functions

Functions51 in github.com/ThePrimeagen/undefined

↓ 9 callersFunctionpush
(str: string)
src/types.ts:143
↓ 6 callersFunctiongetDefaultConfig
()
src/config.ts:121
↓ 6 callersFunctionrunTest
(config: Config, data: DataSet, expected: string)
src/test/run.ts:14
↓ 5 callersFunctioninsertKeyValue
( obj: Type, key: string, value: string | string[], )
src/types.ts:236
↓ 3 callersFunctiongetKeyName
( context: Context, obj: Record<string, unknown>, )
src/utils.ts:117
↓ 3 callersFunctionunionName
(name: string)
src/types.ts:84
↓ 2 callersFunctionarrayTypeToString
( arr: (string | string[])[], current: { [key: string]: boolean } = {}, sub: boolean = false, )
src/types.ts:51
↓ 2 callersFunctioncontains
( obj: Type, properties: string[], )
src/utils.ts:76
↓ 2 callersFunctioncreateTypeValue
(types: Type[], property: string)
src/collapse.ts:22
↓ 2 callersFunctiongetDisplayName
( context: Context, obj: Record<string, unknown>, )
src/utils.ts:20
↓ 2 callersMethodgetName
(keyName: string, t: Type)
src/utils.ts:96
↓ 2 callersFunctiongetTypeFromValueName
( context: Context, obj: Record<string, unknown>, )
src/utils.ts:5
↓ 2 callersFunctionmakeName
(name: string)
src/utils.ts:39
↓ 2 callersFunctionnewline
()
src/types.ts:146
↓ 2 callersFunctionremoveUndefined
(typeValue: TypeValue[])
src/types.ts:105
↓ 2 callersFunctionstringUnions
( type: Type, unions: Union, connectingAmp: boolean = true, )
src/types.ts:91
↓ 2 callersFunctionstringify
(context: Context)
src/undefined-runner.ts:69
↓ 2 callersFunctiontrimNewLine
(str: string)
src/test/run.ts:7
↓ 2 callersFunctiontypeObject
(context: Context, obj: StringToUnknown)
src/types.ts:301
↓ 2 callersFunctionundefinedRun
(data: DataSet, config: Config)
src/undefined-runner.ts:20
↓ 1 callersFunctionattemptCombine
( data: TypedData, unions: Union, config: Config, ignore: string[] = [], )
src/unions.ts:151
↓ 1 callersFunctionbuildTypeFromTypes
* this is probably a very slow function. wild amounts of allocations here.
src/collapse.ts:90
↓ 1 callersFunctioncloseDeclareModule
(context: Context)
src/types.ts:127
↓ 1 callersFunctioncollapse
(context: Context)
src/collapse.ts:133
↓ 1 callersFunctioncombinedUnionName
(n1: string, n2: string)
src/unions.ts:138
↓ 1 callersFunctiondeclareModule
(context: Context)
src/types.ts:120
↓ 1 callersFunctiondetermineEnum
(data: DataShape[], key: string)
src/enum.ts:7
↓ 1 callersFunctionfindAndReplaceDeep
( value: TypeValue[], toReplace: string[], replaceWith: string, )
src/collapse.ts:42
↓ 1 callersFunctiongetAllIntersections
(data: TypeSet, collapses: string[][])
src/collapse.ts:4
↓ 1 callersFunctiongetConfig
()
src/config.ts:127
↓ 1 callersFunctiongetObj
(keyNameToType: TypeSet, key: string)
src/types.ts:251
↓ 1 callersFunctiongetTypesByUnionKey
(data: TypedData, unionKey: string)
src/unions.ts:128
↓ 1 callersFunctiongetUnionizableProperties
( keyCounts: KeyCounts, config: Config, )
src/unions.ts:61
↓ 1 callersFunctionhandleArray
(context: Context, items: any[])
src/types.ts:269
↓ 1 callersFunctionisPrimitive
(typeofValue: string)
src/types.ts:228
↓ 1 callersFunctionkeyDupeCount
(data: TypedData)
src/unions.ts:30
↓ 1 callersFunctionobjContains
( obj: Record<string, unknown>, properties: NameProps, )
src/utils.ts:49
↓ 1 callersFunctionreplaceTypesWithType
( data: TypeSet, toReplace: Type[], replacer: Type, )
src/collapse.ts:58
↓ 1 callersFunctionrun
()
src/undefined.ts:13
↓ 1 callersFunctionstringifyEnum
( context: Context, name: string, keys: EnumKeys, )
src/enum.ts:25
↓ 1 callersFunctionsumTypeKey
(keys: string[])
src/sum-types.ts:4
↓ 1 callersFunctionsumTypes
(context: Context)
src/sum-types.ts:8
↓ 1 callersFunctiontoString
(propKey: string, propValue: TypeValue[])
src/unions.ts:111
↓ 1 callersFunctiontoStringValue
(propValue: TypeValue[] | TypeValue)
src/unions.ts:96
↓ 1 callersFunctiontypeToString
(context: Context)
src/types.ts:134
↓ 1 callersFunctionunionDupeCount
(data: TypedData)
src/unions.ts:115
↓ 1 callersFunctionunionize
(context: Context)
src/unions.ts:218
↓ 1 callersFunctionupdateAllEnumReferences
( data: Map<string, Type>, keyName: string, enumName: string, )
src/enum.ts:41
Methodconstructor
(private config: Config)
src/utils.ts:94
FunctiongetData
(file: string)
src/file.ts:4
Functiontrace
(...args: any[])
src/logger.ts:3