Made base interface for TypeScript nodes

This commit is contained in:
Kir_Antipov 2023-01-30 09:28:39 +00:00
parent 4f0a182734
commit 5392ce7147

View file

@ -0,0 +1,15 @@
import { TypeScriptFormattingOptions } from "./typescript-formatting-options";
/**
* Represents a TypeScript node that can be formatted as a string.
*/
export interface TypeScriptNode {
/**
* Formats the TypeScript node as a string with the specified options.
*
* @param options - The formatting options to apply.
*
* @returns The formatted string representation of the node.
*/
format(options?: TypeScriptFormattingOptions): string;
}