Skip to content

Commit

Permalink
Minor TS cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
oscartbeaumont committed Jul 31, 2024
1 parent b5cd920 commit aadc2b3
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 136 deletions.
130 changes: 0 additions & 130 deletions specta-typescript/src/function.rs

This file was deleted.

2 changes: 1 addition & 1 deletion specta-typescript/src/js_doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::borrow::Borrow;
use specta::{DeprecatedType, GenericType, TypeMap};
use typescript::CommentFormatterArgs;

pub use super::*;
use super::*;

pub fn typedef_named_datatype(cfg: &Typescript, typ: &NamedDataType, type_map: &TypeMap) -> Output {
typedef_named_datatype_inner(
Expand Down
3 changes: 0 additions & 3 deletions specta-typescript/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ pub mod comments;
mod context;
mod error;
pub mod formatter;
#[cfg(feature = "function")]
#[cfg_attr(docsrs, doc(cfg(feature = "function")))]
pub mod function;
pub mod js_doc;
mod reserved_terms;
mod typescript;
Expand Down
3 changes: 1 addition & 2 deletions specta-zod/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ macro_rules! primitive_def {
}
}

#[allow(missing_docs)]
pub type Result<T> = std::result::Result<T, ExportError>;
type Result<T> = std::result::Result<T, ExportError>;

pub(crate) type Output = Result<String>;

Expand Down

0 comments on commit aadc2b3

Please sign in to comment.