Skip to content

Commit

Permalink
ts::export_function_header should require functions feature
Browse files Browse the repository at this point in the history
  • Loading branch information
oscartbeaumont committed Jan 6, 2024
1 parent ac331ca commit 10e7cd3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/lang/ts/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ pub use export_config::*;
use reserved_terms::*;

use crate::{
functions::FunctionDataType,
internal::{skip_fields, skip_fields_named, NonSkipField},
*,
};
Expand Down Expand Up @@ -96,7 +95,12 @@ pub fn export_named_datatype(
/// If your function requires a function body you can copy this function into your own codebase.
///
/// Eg. `function name();`
pub fn export_function_header(dt: FunctionDataType, config: &ExportConfig) -> Result<String> {
#[cfg(feature = "functions")]
#[cfg_attr(docsrs, doc(cfg(feature = "functions")))]
pub fn export_function_header(
dt: crate::functions::FunctionDataType,
config: &ExportConfig,
) -> Result<String> {
let type_map = TypeMap::default();

let mut s = config
Expand Down

0 comments on commit 10e7cd3

Please sign in to comment.