UNPKG

@stacksjs/dtsx

Version:

A modern, fast .d.ts generation tool, powered by Bun.

38 lines (37 loc) 1.39 kB
import type { Declaration } from '../types'; /** * Process function declaration to DTS format */ export declare function processFunctionDeclaration(decl: Declaration, keepComments?: boolean): string; /** * Process variable declaration to DTS format */ export declare function processVariableDeclaration(decl: Declaration, keepComments?: boolean): string; /** * Process interface declaration to DTS format */ export declare function processInterfaceDeclaration(decl: Declaration, keepComments?: boolean): string; /** * Process type alias declaration to DTS format */ export declare function processTypeDeclaration(decl: Declaration, keepComments?: boolean): string; /** * Process class declaration to DTS format */ export declare function processClassDeclaration(decl: Declaration, keepComments?: boolean): string; /** * Process enum declaration to DTS format */ export declare function processEnumDeclaration(decl: Declaration, keepComments?: boolean): string; /** * Process import statement */ export declare function processImportDeclaration(decl: Declaration): string; /** * Process export statement */ export declare function processExportDeclaration(decl: Declaration, keepComments?: boolean): string; /** * Process module/namespace declaration to DTS format */ export declare function processModuleDeclaration(decl: Declaration, keepComments?: boolean): string;