Skip to content

Commit

Permalink
replace @hidden with @ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles-Schleich committed Oct 24, 2024
1 parent 1f44d86 commit d8d358f
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
18 changes: 9 additions & 9 deletions zenoh-ts/src/pubsub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,26 +41,26 @@ import { Encoding, IntoEncoding } from "./encoding";

export class Subscriber {
/**
* @hidden
* @ignore
*/
private remote_subscriber: RemoteSubscriber;
/**
* @hidden
* @ignore
*/
private callback_subscriber: boolean;
/** Finalization registry used for cleanup on drop
* @hidden
* @ignore
*/
static registry: FinalizationRegistry<RemoteSubscriber> = new FinalizationRegistry((r_subscriber: RemoteSubscriber) => r_subscriber.undeclare());
/**
* @hidden
* @ignore
*/
dispose() {
this.undeclare();
Subscriber.registry.unregister(this);
}
/**
* @hidden
* @ignore
*/
constructor(
remote_subscriber: RemoteSubscriber,
Expand Down Expand Up @@ -107,7 +107,7 @@ export class Subscriber {
* Create a new subscriber,
* note : This function should never be called directly by the user
* please use `declare_subscriber` on a session to create a subscriber
* @hidden
* @ignore
*/
static async new(
remote_subscriber: RemoteSubscriber,
Expand All @@ -129,7 +129,7 @@ export enum ChannelType {

/**
* General interface for a Handler, not to be exposed by the user
* @hidden
* @ignore
*/
export interface Handler {
size: number;
Expand Down Expand Up @@ -177,12 +177,12 @@ export class Publisher {
private _reliability: Reliability;
private _encoding: Encoding;
/** Finalization registry used for cleanup on drop
* @hidden
* @ignore
*/
static registry: FinalizationRegistry<RemotePublisher> = new FinalizationRegistry((r_publisher: RemotePublisher) => r_publisher.undeclare());

/**
* @hidden
* @ignore
*/
dispose() {
this.undeclare();
Expand Down
8 changes: 4 additions & 4 deletions zenoh-ts/src/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ export class Queryable {
private _remote_queryable: RemoteQueryable;
private _callback_queryable;
/** Finalization registry used for cleanup on drop
* @hidden
* @ignore
*/
static registry: FinalizationRegistry<RemoteQueryable> = new FinalizationRegistry((r_queryable: RemoteQueryable) => r_queryable.undeclare());

/**
* @hidden
* @ignore
*/
dispose() {
this.undeclare();
Expand Down Expand Up @@ -102,7 +102,7 @@ export class Queryable {

/**
* Convenience function to convert between QueryWS and Query
* @hidden
* @ignore
*/
export function QueryWS_to_Query(
query_ws: QueryWS,
Expand Down Expand Up @@ -450,7 +450,7 @@ export class Reply {
}

/**
* @hidden
* @ignore
*/
constructor(reply_ws: ReplyWS) {
if ("Ok" in reply_ws.result) {
Expand Down
2 changes: 1 addition & 1 deletion zenoh-ts/src/remote_api/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export enum RemoteRecvErr {

type JSONMessage = string;
/**
* @hidden
* @ignore
*/
export type UUIDv4 = String | string;

Expand Down
10 changes: 5 additions & 5 deletions zenoh-ts/src/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export class Session {
// WebSocket Backend
private remote_session: RemoteSession;
/** Finalization registry used for cleanup on drop
* @hidden
* @ignore
*/
static registry: FinalizationRegistry<RemoteSession> = new FinalizationRegistry((r_session: RemoteSession) => r_session.close());

Expand Down Expand Up @@ -264,7 +264,7 @@ export class Session {
}

/**
* @hidden internal function for handlers
* @ignore internal function for handlers
*/
private check_handler_or_callback<T>(handler?: FifoChannel | RingChannel | ((sample: T) => Promise<void>)):
[undefined | ((callback: T) => Promise<void>), HandlerChannel] {
Expand Down Expand Up @@ -570,11 +570,11 @@ export enum RecvErr {
*/
export class Receiver {
/**
* @hidden
* @ignore
*/
private receiver: SimpleChannel<ReplyWS | RecvErr>;
/**
* @hidden
* @ignore
*/
private constructor(receiver: SimpleChannel<ReplyWS | RecvErr>) {
this.receiver = receiver;
Expand Down Expand Up @@ -609,7 +609,7 @@ export class Receiver {
/**
* Receiver gets created by `get` call
*
* @hidden Reply
* @ignore Reply
*/
static new(reply_tx: SimpleChannel<ReplyWS>) {
return new Receiver(reply_tx);
Expand Down

0 comments on commit d8d358f

Please sign in to comment.