Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/Swatinem/rollup-plugin-dts
/ functions
Functions
146 in github.com/Swatinem/rollup-plugin-dts
⨍
Functions
146
◇
Types & classes
740
↓ 40 callers
Method
test
(name: string, fn: (bless: boolean) => any)
tests/utils.ts:40
↓ 21 callers
Function
withStartEnd
(esNode: T, nodeOrRange: ts.Node | Range)
src/transform/astHelpers.ts:235
↓ 20 callers
Function
createIdentifier
(node: ts.Identifier | ts.StringLiteral)
src/transform/astHelpers.ts:40
↓ 18 callers
Function
bundleWithSourcemap
(inputPath: string)
tests/sourcemap.ts:10
↓ 10 callers
Method
convertTypeNode
(node?: ts.TypeNode)
src/transform/DeclarationScope.ts:232
↓ 9 callers
Method
pushReference
(id: ESTree.Expression)
src/transform/DeclarationScope.ts:75
↓ 9 callers
Method
pushStatement
(node: ESTree.Statement | ESTree.ModuleDeclaration)
src/transform/Transformer.ts:40
↓ 9 callers
Method
pushTypeVariable
(id: ts.Identifier)
src/transform/DeclarationScope.ts:70
↓ 8 callers
Method
createDeclaration
(node: ts.Node, id?: ts.Identifier)
src/transform/Transformer.ts:44
↓ 8 callers
Method
popScope
(n = 1)
src/transform/DeclarationScope.ts:65
↓ 7 callers
Method
pushIdentifierReference
(id: ts.Identifier | ts.StringLiteral)
src/transform/DeclarationScope.ts:102
↓ 6 callers
Function
logCache
(...args: unknown[])
src/program.ts:33
↓ 6 callers
Function
uniqName
(hint: string)
src/transform/preprocess.ts:563
↓ 5 callers
Function
convertExpression
(node: ts.Expression)
src/transform/astHelpers.ts:119
↓ 5 callers
Method
convertTypeParameters
(params?: ts.NodeArray<ts.TypeParameterDeclaration>)
src/transform/DeclarationScope.ts:219
↓ 5 callers
Function
isUrl
(p: string)
src/transform/index.ts:218
↓ 5 callers
Function
matchesModifier
(node: ts.Node, flags: ts.ModifierFlags)
src/transform/astHelpers.ts:241
↓ 5 callers
Function
parse
(fileName: string, code: string)
src/helpers.ts:19
↓ 4 callers
Method
convertEntityName
(node: ts.EntityName)
src/transform/DeclarationScope.ts:106
↓ 4 callers
Method
convertParametersAndType
(node: ts.SignatureDeclarationBase)
src/transform/DeclarationScope.ts:165
↓ 4 callers
Function
createTypeOnlyName
(name: string)
src/transform/TypeOnlyFixer.ts:286
↓ 4 callers
Method
isTypeOnly
(name: string)
src/transform/TypeOnlyFixer.ts:267
↓ 4 callers
Function
pushNamedNode
(name: string, range: Range)
src/transform/preprocess.ts:572
↓ 4 callers
Method
pushScope
()
src/transform/DeclarationScope.ts:62
↓ 3 callers
Function
clean
(code: string = "")
tests/testcases.ts:97
↓ 3 callers
Method
convertMembers
(members: ts.NodeArray<ts.TypeElement | ts.ClassElement>)
src/transform/DeclarationScope.ts:193
↓ 3 callers
Method
convertTypeArguments
(node: ts.NodeWithTypeArguments)
src/transform/DeclarationScope.ts:184
↓ 3 callers
Function
exists
(path: string)
tests/utils.ts:4
↓ 3 callers
Function
fixModifiers
(code: MagicString, node: ts.Node)
src/transform/preprocess.ts:615
↓ 3 callers
Function
getCompilerOptions
( input: string, overrideOptions: ts.CompilerOptions, overrideConfigPath?: string, enableDeclarationMa
src/program.ts:55
↓ 3 callers
Function
getModule
( { entries, programs, resolvedOptions }: DtsPluginContext, fileName: string, code: string, )
src/index.ts:31
↓ 3 callers
Function
getNameBinding
(sourceName: string, targetName: string)
src/transform/preprocess.ts:677
↓ 3 callers
Function
getSafeName
(fileId: string)
src/transform/preprocess.ts:681
↓ 3 callers
Function
getStart
(node: ts.Node)
src/transform/preprocess.ts:685
↓ 3 callers
Method
isUselessImport
(node: ts.Identifier)
src/transform/TypeOnlyFixer.ts:260
↓ 3 callers
Function
trimExtension
(path: string)
src/helpers.ts:11
↓ 3 callers
Function
watchFiles
(module: ResolvedModule)
src/index.ts:141
↓ 2 callers
Function
cacheConfig
* Caches the config for every path between two given paths. * * It starts from the first path and walks up the directory tree until it reaches the s
src/program.ts:40
↓ 2 callers
Method
convertComputedPropertyName
(node: { name?: ts.PropertyName })
src/transform/DeclarationScope.ts:148
↓ 2 callers
Method
convertHeritageClauses
(node: ts.InterfaceDeclaration | ts.ClassDeclaration)
src/transform/DeclarationScope.ts:175
↓ 2 callers
Method
convertNamespace
(node: ts.ModuleDeclaration, relaxedModuleBlock = false)
src/transform/DeclarationScope.ts:336
↓ 2 callers
Method
convertPropertyAccess
(node: ts.PropertyAccessExpression)
src/transform/DeclarationScope.ts:122
↓ 2 callers
Function
createBundle
(options: Options, rollupOptions: RollupOptions)
tests/testcases.ts:69
↓ 2 callers
Function
createTypeOnlyReExportName
(name: string)
src/transform/TypeOnlyFixer.ts:289
↓ 2 callers
Function
forEachFixture
(fixtures: string, cb: (name: string, dir: string) => void)
tests/utils.ts:14
↓ 2 callers
Method
formatChunkReference
* Format a chunk filename as a relative path from the current chunk.
src/transform/ModuleDeclarationFixer.ts:123
↓ 2 callers
Function
generateDts
()
src/index.ts:171
↓ 2 callers
Function
getDeclarationId
(path: string)
src/helpers.ts:15
↓ 2 callers
Function
getEnd
(node: ts.Node)
src/transform/preprocess.ts:689
↓ 2 callers
Function
getNodeIndent
(node: ts.Node)
src/transform/TypeOnlyFixer.ts:277
↓ 2 callers
Function
hydrateSourcemap
( sparseMappings: string, inputMap: InputSourceMap, outputCode: string, )
src/transform/sourcemap.ts:32
↓ 2 callers
Method
isReExportTypeOnly
(name: string)
src/transform/TypeOnlyFixer.ts:272
↓ 2 callers
Function
newlineAt
(node: ts.Node, idx: number)
src/transform/preprocess.ts:694
↓ 2 callers
Function
normalizePath
Normalize paths for comparison (handle Windows backslashes)
src/transform/ModuleDeclarationFixer.ts:26
↓ 2 callers
Function
preProcess
({ sourceFile, isEntry, isJSON }: PreProcessInput)
src/transform/preprocess.ts:58
↓ 2 callers
Function
renderTypeParams
(typeParameters?: ts.NodeArray<ts.TypeParameterDeclaration>)
src/transform/NamespaceFixer.ts:240
↓ 2 callers
Function
updateSourcemapAsset
( bundle: Record<string, { type: string; source?: string }>, chunkFileName: string, data: SourcemapData,
src/transform/index.ts:404
↓ 2 callers
Function
writeBlock
(codes: Array<string>)
src/transform/index.ts:388
↓ 1 callers
Method
analyze
(nodes: Iterable<ts.Node>)
src/transform/TypeOnlyFixer.ts:172
↓ 1 callers
Function
assertExpectedResult
(file: string, code: string, bless: boolean)
tests/preprocess.ts:27
↓ 1 callers
Function
assertTestcase
(dir: string, meta: Meta, bless: boolean)
tests/testcases.ts:106
↓ 1 callers
Function
assertTestcase
(dir: string, bless: boolean)
tests/preprocess.ts:16
↓ 1 callers
Function
bundleMultipleWithSourcemap
( inputs: Record<string, string>, outputDir: string, )
tests/sourcemap.ts:25
↓ 1 callers
Function
bundleWithAssets
( inputs: Record<string, string>, outputDir: string, )
tests/sourcemap.ts:44
↓ 1 callers
Function
checkInlineImport
(node: ts.Node)
src/transform/preprocess.ts:531
↓ 1 callers
Function
convert
({ sourceFile }: ConvertInput)
src/transform/Transformer.ts:17
↓ 1 callers
Method
convertClassOrInterfaceDeclaration
(node: ts.ClassDeclaration | ts.InterfaceDeclaration)
src/transform/Transformer.ts:154
↓ 1 callers
Method
convertEnumDeclaration
(node: ts.EnumDeclaration)
src/transform/Transformer.ts:139
↓ 1 callers
Method
convertExportDeclaration
(node: ts.ExportDeclaration | ts.ExportAssignment)
src/transform/Transformer.ts:230
↓ 1 callers
Method
convertExportSpecifier
(node: ts.ExportSpecifier)
src/transform/Transformer.ts:370
↓ 1 callers
Method
convertFunctionDeclaration
(node: ts.FunctionDeclaration)
src/transform/Transformer.ts:144
↓ 1 callers
Method
convertImportDeclaration
(node: ts.ImportDeclaration | ts.ImportEqualsDeclaration)
src/transform/Transformer.ts:294
↓ 1 callers
Method
convertNamedImportBindings
(node: ts.NamedImportBindings)
src/transform/Transformer.ts:350
↓ 1 callers
Method
convertNamespaceDeclaration
(node: ts.ModuleDeclaration)
src/transform/Transformer.ts:121
↓ 1 callers
Method
convertStatement
(node: ts.Node)
src/transform/Transformer.ts:76
↓ 1 callers
Method
convertTypeAliasDeclaration
(node: ts.TypeAliasDeclaration)
src/transform/Transformer.ts:167
↓ 1 callers
Method
convertVariableStatement
(node: ts.VariableStatement)
src/transform/Transformer.ts:187
↓ 1 callers
Function
createDeclaration
(id: ts.Identifier, range: Range)
src/transform/astHelpers.ts:101
↓ 1 callers
Function
createIIFE
(range: Range)
src/transform/astHelpers.ts:54
↓ 1 callers
Function
createNamespaceImport
(fileId: string)
src/transform/preprocess.ts:554
↓ 1 callers
Function
createProgram
( fileName: string, overrideOptions: ts.CompilerOptions, tsconfig?: string, enableDeclarationMap?: boo
src/program.ts:118
↓ 1 callers
Function
createProgram
(node: ts.SourceFile)
src/transform/astHelpers.ts:10
↓ 1 callers
Function
createPrograms
( input: Array<string>, overrideOptions: ts.CompilerOptions, tsconfig?: string, enableDeclarationMap?:
src/program.ts:132
↓ 1 callers
Function
createReference
(id: ESTree.Expression)
src/transform/astHelpers.ts:25
↓ 1 callers
Function
createReturn
()
src/transform/astHelpers.ts:83
↓ 1 callers
Function
decodeResolvedModule
Decode a resolved module marker comment from text. Returns the absolute path, or null if not found.
src/transform/ModuleDeclarationFixer.ts:16
↓ 1 callers
Function
duplicateExports
(code: MagicString, module: ts.ModuleDeclaration)
src/transform/preprocess.ts:651
↓ 1 callers
Function
encodeResolvedModule
(absolutePath: string)
src/transform/ModuleDeclarationFixer.ts:11
↓ 1 callers
Method
findNamespaces
()
src/transform/NamespaceFixer.ts:38
↓ 1 callers
Method
findReferenceCount
(node: ts.Node)
src/transform/languageService.ts:36
↓ 1 callers
Method
fix
()
src/transform/TypeOnlyFixer.ts:30
↓ 1 callers
Method
fix
()
src/transform/ModuleDeclarationFixer.ts:53
↓ 1 callers
Method
fix
()
src/transform/NamespaceFixer.ts:187
↓ 1 callers
Method
fixTypeOnlyExport
(node: ExportDeclarationWithClause)
src/transform/TypeOnlyFixer.ts:122
↓ 1 callers
Method
fixTypeOnlyImport
(node: ImportDeclarationWithClause)
src/transform/TypeOnlyFixer.ts:51
↓ 1 callers
Function
frameNode
(node: ts.Node)
src/transform/errors.ts:30
↓ 1 callers
Function
getCodeFrame
()
src/transform/errors.ts:5
↓ 1 callers
Function
getLocation
(node: ts.Node)
src/transform/errors.ts:20
↓ 1 callers
Method
getTargetChunkName
* Get the output chunk name for an absolute module path.
src/transform/ModuleDeclarationFixer.ts:95
↓ 1 callers
Function
handleDtsFile
()
src/index.ts:152
next →
1–100 of 146, ranked by callers