oxc/crates/oxc_linter/fixtures/import/tomdoc-deprecated.js

22 lines
517 B
JavaScript

// Deprecated: This function is terrible.
//
// With another line comment in description.
export function fn() { return null }
// Deprecated: this is awful,
// use NotAsBadClass.
//
// Some other description text.
export default class TerribleClass {
}
// Deprecated: Please stop sending/handling this action type.
export const MY_TERRIBLE_ACTION = "ugh"
// Public: This one is fine.
//
// Returns a String "great!"
export function fine() { return "great!" }
export function _undocumented() { return "sneaky!" }