pub struct JSDoc(pub Typescript);
Expand description
JSDoc language exporter.
Tuple Fields§
§0: Typescript
Implementations§
Source§impl JSDoc
impl JSDoc
Sourcepub fn header(self, header: impl Into<Cow<'static, str>>) -> Self
pub fn header(self, header: impl Into<Cow<'static, str>>) -> Self
Configure a header for the file.
This is perfect for configuring lint ignore rules or other file-level comments.
Sourcepub fn bigint(self, bigint: BigIntExportBehavior) -> Self
pub fn bigint(self, bigint: BigIntExportBehavior) -> Self
Configure the BigInt handling behaviour
Sourcepub fn comment_style(self, exporter: CommentFormatterFn) -> Self
pub fn comment_style(self, exporter: CommentFormatterFn) -> Self
Trait Implementations§
Source§impl From<Typescript> for JSDoc
impl From<Typescript> for JSDoc
Source§fn from(ts: Typescript) -> Self
fn from(ts: Typescript) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for JSDoc
impl RefUnwindSafe for JSDoc
impl Send for JSDoc
impl Sync for JSDoc
impl Unpin for JSDoc
impl UnwindSafe for JSDoc
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more