Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Effect-TS/tsgo
/ functions
Functions
2,947 in github.com/Effect-TS/tsgo
⨍
Functions
2,947
◇
Types & classes
1,081
↓ 2 callers
Function
cloneJSON
(value T)
etscore/options_schema_test.go:293
↓ 2 callers
Function
cloneKeyPatterns
(patterns []etscore.KeyPattern)
internal/pluginoptions/resolver.go:145
↓ 2 callers
Function
cloneOverrides
(source []etscore.Override)
internal/effectconfigraw/hooks.go:237
↓ 2 callers
Function
cloneStringMap
(source map[string]string)
internal/effectconfigraw/hooks.go:282
↓ 2 callers
Function
cloneStringSlicePtr
(source *[]string)
internal/effectconfigraw/hooks.go:322
↓ 2 callers
Function
collectIndices
collectIndices collects the indices from an iter.Seq2 into a slice.
internal/graph/graph_test.go:45
↓ 2 callers
Function
compileAndGetCheckerAndSourceFileWithEffectV3Internal
(t *testing.T, source string)
internal/typeparser/helpers_test.go:119
↓ 2 callers
Function
computeServiceTagKey
computeServiceTagKey computes the deterministic tag key for a service class. Falls back to the class name if keybuilder returns empty.
internal/completions/context_self_in_classes.go:97
↓ 2 callers
Method
consumePendingPrefix
(sourceFile *ast.SourceFile, target *ast.Node)
internal/rewriter/tracker.go:129
↓ 2 callers
Function
containsEffect
(supported []string, version string)
internal/rules/rules_json_test.go:594
↓ 2 callers
Function
createDiagnosticSeverityObject
( severities: Record<string, RuleSeverity> )
_packages/tsgo/src/setup/changes.ts:158
↓ 2 callers
Method
createExportSchemaClassDeclaration
createExportSchemaClassDeclaration creates: export class <Name> extends Schema.Class<Name>("Name")({...}) { }
internal/schemagen/schemagen.go:632
↓ 2 callers
Method
createExportVariableDeclaration
createExportVariableDeclaration creates: export const <name> = <initializer>
internal/schemagen/schemagen.go:612
↓ 2 callers
Function
createLspPluginObject
(target: Target.TsConfig)
_packages/tsgo/src/setup/changes.ts:173
↓ 2 callers
Function
createOpaqueTypeDecl
createOpaqueTypeDecl creates an interface (if isObject) or type alias for the given schema property.
internal/refactors/make_schema_opaque.go:192
↓ 2 callers
Function
createRulePrompt
( rules: ReadonlyArray<RuleInfo>, initialSeverities: Record<string, RuleSeverity> )
_packages/tsgo/src/setup/rule-prompt.ts:588
↓ 2 callers
Function
createTypeofReference
createTypeofReference creates: typeof <name>
internal/refactors/make_schema_opaque.go:96
↓ 2 callers
Function
derivePipeableSignatureFromDataFirst
(c *checker.Checker, sig *checker.Signature, subjectIndex int)
internal/typeparser/data_first_signature.go:113
↓ 2 callers
Function
effectFromInternal
(effect *typeparser.Effect)
etsapi/type_parser.go:121
↓ 2 callers
Function
effectLanguageServicePluginOptionsSchema
()
etscore/options_schema_test.go:152
↓ 2 callers
Function
enclosingGeneratorCall
(node *ast.Node)
internal/rules/redundant_map_error.go:234
↓ 2 callers
Function
enclosingYieldExpression
(node *ast.Node)
internal/rules/redundant_map_error.go:224
↓ 2 callers
Method
ensureEffectContextAnalyzed
(node *ast.Node)
internal/typeparser/effect_context.go:63
↓ 2 callers
Function
escapeMermaidLabel
escapeMermaidLabel escapes special characters in a Mermaid label.
internal/graph/graph.go:726
↓ 2 callers
Method
extendsSchemaClassLike
extendsSchemaClassLike is the shared implementation for ExtendsSchemaClass and ExtendsSchemaRequestClass.
internal/typeparser/extends_schema_class.go:48
↓ 2 callers
Function
findClassTypeByName
(t *testing.T, c *checker.Checker, sf *ast.SourceFile, className string)
internal/typeparser/service_type_test.go:77
↓ 2 callers
Function
findEnclosingVariableName
findEnclosingVariableName walks up from the given node to find an enclosing VariableDeclaration and returns its identifier name, or "" if not found.
internal/completions/fn_function_star.go:76
↓ 2 callers
Function
findFirstStrictEffect
findFirstStrictEffect returns the first type in the slice that is strictly an Effect type, or nil if none are found. This mirrors the Nano.firstSucces
internal/rules/effect_in_void_success.go:59
↓ 2 callers
Function
findSchemaVariableDeclaration
findSchemaVariableDeclaration walks the ancestor chain from the cursor to find a VariableDeclaration whose initializer has a Schema type. Returns nil
internal/refactors/make_schema_opaque.go:31
↓ 2 callers
Function
findTopLevelStatement
findTopLevelStatement walks up the parent chain from node until it finds a node whose parent is the SourceFile.
internal/refactors/async_await_to_gen_try_promise.go:112
↓ 2 callers
Function
formatEffectTypeParams
formatEffectTypeParams formats Effect type parameters (A, E, R) and prepends them to documentation.
etslshooks/init.go:340
↓ 2 callers
Function
generateReadme
(committedReadme []byte)
internal/rules/rules_json_test.go:817
↓ 2 callers
Function
generatorFunctionKeywordRange
(sf *ast.SourceFile, generatorFunction *ast.FunctionExpression)
internal/rules/redundant_map_error.go:318
↓ 2 callers
Function
getAllRules
()
_packages/tsgo/src/setup/rule-info.ts:33
↓ 2 callers
Function
getClosestNodeWithLinks
(store *core.LinkStore[*ast.Node, T], node *ast.Node)
internal/typeparser/effect_context.go:49
↓ 2 callers
Function
getFilteredEntries
(entries: ReadonlyArray<RuleEntry>, searchText: string)
_packages/tsgo/src/setup/rule-prompt.ts:357
↓ 2 callers
Method
getInferredReturnType
getInferredReturnType extracts the return type from a function-like declaration. It handles overloaded functions (multiple call signatures), type pred
internal/typeparser/expected_and_real_type.go:22
↓ 2 callers
Function
getInputText
(input: Terminal.UserInput)
_packages/tsgo/src/setup/rule-prompt.ts:380
↓ 2 callers
Function
getModifiersWithoutAsync
getModifiersWithoutAsync returns a new modifier list with the async keyword removed.
internal/refactors/async_await_to_gen.go:335
↓ 2 callers
Function
getPackagedBinaryPath
(binaryName: string = "tsgo")
_packages/tsgo/src/cli.ts:195
↓ 2 callers
Method
getPropertyType
getPropertyType extracts the type of a named property from a type.
internal/typeparser/schema_type.go:108
↓ 2 callers
Function
hasScope
hasScope checks if any union member of the given type is a Scope type.
internal/rules/scope_in_layer_effect.go:193
↓ 2 callers
Function
insertYieldedEffectModuleCall
( tracker *rewriter.Tracker, sf *ast.SourceFile, block *ast.Block, effectModuleIdentifier string, methodN
internal/fixables/run_effect_inside_effect.go:143
↓ 2 callers
Function
isAnyType
(t *checker.Type)
internal/rules/unsafe_effect_type_assertion.go:143
↓ 2 callers
Function
isLikelySelfParameter
(sym *ast.Symbol)
internal/typeparser/data_first_signature.go:141
↓ 2 callers
Function
isPresetEnabled
( presetName: DiagnosticPresetName, severities: Readonly<Record<string, RuleSeverity>> )
_packages/tsgo/src/presets.ts:117
↓ 2 callers
Function
isRuleFixable
isRuleFixable returns true if any of the rule's codes has a non-disable fixable.
internal/rules/rules_json_test.go:189
↓ 2 callers
Function
isSymbolDeclaredInRange
isSymbolDeclaredInRange checks if any of the symbol's declarations fall within the given range.
internal/typeparser/effect_fn_opportunity.go:460
↓ 2 callers
Function
isTypeOnlyHeritageClause
(node *ast.Node)
internal/typeparser/get_type_at_location.go:82
↓ 2 callers
Function
isVoidExpression
isVoidExpression checks if a node is `undefined`, `void 0`, or a parenthesized version of either.
internal/rules/effect_succeed_with_void.go:42
↓ 2 callers
Function
layerSymbolKind
(node *ast.Node)
etslshooks/document_symbols.go:543
↓ 2 callers
Function
lazyEffectDiagnosticForExportedDeclaration
(ctx *rule.Context, name *ast.Node)
internal/rules/lazy_effect.go:112
↓ 2 callers
Function
localInlayBaselineFileName
(t *testing.T)
internal/effecttest/inlay_hints_baseline_test.go:160
↓ 2 callers
Function
logDerivedPipeableSignatureComparison
(t *testing.T, tp *TypeParser, node *ast.Node)
internal/typeparser/data_first_signature_test.go:158
↓ 2 callers
Function
lspPositionToOffset
(text string, lineMap *lsconv.LSPLineMap, pos lsproto.Position)
internal/effecttest/autoimport_style_consistency_test.go:211
↓ 2 callers
Function
marshalMetadataJSON
(t *testing.T)
internal/rules/rules_json_test.go:519
↓ 2 callers
Function
matchesOverride
(override etscore.Override, fileName string, basePath string, useCaseSensitiveFileNames bool)
internal/pluginoptions/resolver.go:67
↓ 2 callers
Function
mergePresetDiagnosticSeverities
( presetNames: ReadonlyArray<DiagnosticPresetName> )
_packages/tsgo/src/presets.ts:85
↓ 2 callers
Function
mermaidEscapeOutputLabel
mermaidEscapeOutputLabel applies standard Mermaid escaping for backslash, brackets, and pipe on top of entity-encoded text. This is used for the outpu
internal/layergraph/format.go:114
↓ 2 callers
Function
namespaceFixKey
(fix *autoimport.Fix)
internal/autoimportstyle/stylepolicy.go:55
↓ 2 callers
Function
neighborsOutgoingSorted
neighborsOutgoingSorted returns outgoing neighbor indices sorted by the layer ordering: provides count descending, then requires count descending.
internal/layergraph/magic.go:149
↓ 2 callers
Function
normalizeDiagnosticSeverities
( severities: Readonly<Record<string, RuleSeverity>> )
_packages/tsgo/src/presets.ts:59
↓ 2 callers
Function
normalizePackageList
(packages []string)
etscore/options.go:339
↓ 2 callers
Function
parseDiagnosticSeverityMap
parseDiagnosticSeverityMap converts a plugin rule configuration map to map[string]Severity.
etscore/options_parser.go:427
↓ 2 callers
Function
parseFunctionReturningEffectGen
parseFunctionReturningEffectGen extracts the Effect.gen call and any pipe args from a function-like node. Returns nil if the function doesn't match.
internal/refactors/effect_gen_to_fn.go:104
↓ 2 callers
Function
parseKeyPatterns
parseKeyPatterns converts a JSON array of key pattern objects to []KeyPattern.
etscore/options_parser.go:447
↓ 2 callers
Method
parseLayerVarianceStruct
parseLayerVarianceStruct extracts ROut, E, RIn from a Layer variance struct type.
internal/typeparser/layer_type.go:27
↓ 2 callers
Function
parseNormalizedStringArrayStrict
(value any)
etscore/options_parser.go:263
↓ 2 callers
Function
parseStringArrayLossy
(value any)
etscore/options_parser.go:398
↓ 2 callers
Function
parseStringArrayStrict
(value any)
etscore/options_parser.go:382
↓ 2 callers
Function
probeBackend
(backend: NativeBackend, cwdRequire: NodeRequire, path: Path.Path)
_packages/tsgo/src/cli.ts:121
↓ 2 callers
Method
processArrayType
processArrayType converts array types to Schema.Array (wrapping in Schema.mutable for non-readonly).
internal/schemagen/structural.go:395
↓ 2 callers
Function
promptForTsConfigPath
(currentDir: string)
_packages/tsgo/src/setup/tsconfig-prompt.ts:29
↓ 2 callers
Function
ptrTransformations
(in []PipingFlowTransformation)
internal/typeparser/data_first_signature_test.go:283
↓ 2 callers
Method
pushHoistedStatement
pushHoistedStatement records a generated statement and its reference generator.
internal/schemagen/structural.go:97
↓ 2 callers
Function
removePartialChildren
removePartialChildren removes graph nodes for the given AST nodes.
internal/layergraph/extract.go:431
↓ 2 callers
Function
renderCodeActions
( result: ComputeChangesResult, assessmentState: Assessment.State )
_packages/tsgo/src/setup/diff-renderer.ts:227
↓ 2 callers
Function
replaceReadmeSection
(content string, startMarker string, endMarker string, body string)
internal/rules/rules_json_test.go:838
↓ 2 callers
Method
resolveAlias
resolveAlias returns the configured alias for the given namespace name under the given package, or the namespace name itself if no alias is configured
internal/autoimportstyle/stylepolicy.go:216
↓ 2 callers
Function
resolveAliasSymbol
(c *checker.Checker, symbol *ast.Symbol)
internal/rules/unnecessary_typeof_type.go:184
↓ 2 callers
Function
resolveDiagnosticSeverity
( name: string, severities: Readonly<Record<string, RuleSeverity>> )
_packages/tsgo/src/presets.ts:77
↓ 2 callers
Function
resolvedSymbolType
(c *checker.Checker, symbol *ast.Symbol, location *ast.Node)
internal/rules/unnecessary_typeof_type.go:170
↓ 2 callers
Function
rewriteSpecs
(specs []string, relativeDifference string)
internal/effectconfigraw/hooks.go:155
↓ 2 callers
Function
runCryptoRandomUUID
(ctx *rule.Context, checkInEffect bool)
internal/rules/crypto_random_uuid.go:36
↓ 2 callers
Function
runGlobalConsole
(ctx *rule.Context, checkInEffect bool)
internal/rules/global_console.go:45
↓ 2 callers
Function
runGlobalDate
(ctx *rule.Context, checkInEffect bool)
internal/rules/global_date.go:42
↓ 2 callers
Function
runGlobalFetch
(ctx *rule.Context, checkInEffect bool)
internal/rules/global_fetch.go:36
↓ 2 callers
Function
runGlobalRandom
(ctx *rule.Context, checkInEffect bool)
internal/rules/global_random.go:36
↓ 2 callers
Function
runGlobalTimers
(ctx *rule.Context, checkInEffect bool)
internal/rules/global_timers.go:52
↓ 2 callers
Function
runProcessEnv
(ctx *rule.Context, checkInEffect bool)
internal/rules/process_env.go:36
↓ 2 callers
Function
selectTsConfigFile
( currentDir: string )
_packages/tsgo/src/setup/tsconfig-prompt.ts:37
↓ 2 callers
Function
serviceFromInternal
(service *typeparser.Service)
etsapi/type_parser.go:135
↓ 2 callers
Function
shouldAddNativePreviewWithDependencyType
(dependencyType: "dependencies" | "devDependencies")
_packages/tsgo/src/setup/changes.ts:246
↓ 2 callers
Function
signatureString
(c *checker.Checker, sig *checker.Signature)
internal/typeparser/data_first_signature_test.go:240
↓ 2 callers
Function
splitEffectFnArguments
(args []*ast.Node)
internal/typeparser/effect_fn.go:67
↓ 2 callers
Function
sql
(_strings: TemplateStringsArray, ..._args: ReadonlyArray<unknown>)
testdata/tests/effect-v4-refactors/togglePipeStyle_nestedCallback.ts:6
↓ 2 callers
Function
toString
(e: Effect.Effect<number>)
testdata/tests/effect-v3/missedPipeableOpportunity.ts:22
↓ 2 callers
Function
toString
(e: Effect.Effect<number>)
testdata/tests/effect-v4/missedPipeableOpportunity.ts:21
↓ 2 callers
Function
trimmedNodeText
trimmedNodeText extracts the source text of a node, trimmed of leading trivia.
internal/rules/missed_pipeable_opportunity.go:192
↓ 2 callers
Function
triple
(e: Effect.Effect<number>)
testdata/tests/effect-v3/missedPipeableOpportunity.ts:28
← previous
next →
401–500 of 2,947, ranked by callers