From fc07458280ed26290c86888162c8087a648fef60 Mon Sep 17 00:00:00 2001 From: overlookmotel <557937+overlookmotel@users.noreply.github.com> Date: Sat, 26 Oct 2024 17:10:34 +0000 Subject: [PATCH] refactor(ast): move custom types `.d.ts` file (#6931) We have a few manually-defined TS types in `oxc_ast` crate. Move that `.d.ts` file out of `src` folder, and name it more descriptively. --- crates/oxc_ast/{src/ast/types.d.ts => custom_types.d.ts} | 0 tasks/ast_tools/src/generators/typescript.rs | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename crates/oxc_ast/{src/ast/types.d.ts => custom_types.d.ts} (100%) diff --git a/crates/oxc_ast/src/ast/types.d.ts b/crates/oxc_ast/custom_types.d.ts similarity index 100% rename from crates/oxc_ast/src/ast/types.d.ts rename to crates/oxc_ast/custom_types.d.ts diff --git a/tasks/ast_tools/src/generators/typescript.rs b/tasks/ast_tools/src/generators/typescript.rs index 4d61f38441209..a51ebac14fce7 100644 --- a/tasks/ast_tools/src/generators/typescript.rs +++ b/tasks/ast_tools/src/generators/typescript.rs @@ -13,7 +13,7 @@ use crate::{ use super::define_generator; -const CUSTOM_TYPESCRIPT: &str = include_str!("../../../../crates/oxc_ast/src/ast/types.d.ts"); +const CUSTOM_TYPESCRIPT: &str = include_str!("../../../../crates/oxc_ast/custom_types.d.ts"); pub struct TypescriptGenerator;