From 5392ce7147e8b5390391a03a210423806de1a936 Mon Sep 17 00:00:00 2001 From: Kir_Antipov Date: Mon, 30 Jan 2023 09:28:39 +0000 Subject: [PATCH] Made base interface for TypeScript nodes --- src/utils/typescript/typescript-node.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/utils/typescript/typescript-node.ts diff --git a/src/utils/typescript/typescript-node.ts b/src/utils/typescript/typescript-node.ts new file mode 100644 index 0000000..533221c --- /dev/null +++ b/src/utils/typescript/typescript-node.ts @@ -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; +}