mirror of
https://github.com/Kir-Antipov/mc-publish.git
synced 2024-11-28 19:31:03 -05:00
Made base interface for TypeScript nodes
This commit is contained in:
parent
4f0a182734
commit
5392ce7147
1 changed files with 15 additions and 0 deletions
15
src/utils/typescript/typescript-node.ts
Normal file
15
src/utils/typescript/typescript-node.ts
Normal 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;
|
||||
}
|
Loading…
Reference in a new issue