Skip to content

Commit

Permalink
[Service Bus] Left over constants/functions in the docs that aren't e…
Browse files Browse the repository at this point in the history
…xported (#10549)

* @internal @ignore tags for the ones that aren't exported

* Update sdk/servicebus/service-bus/src/serializers/ruleResourceSerializer.ts

Co-authored-by: Ramya Rao <ramya.rao.a@outlook.com>

* Update sdk/servicebus/service-bus/src/util/utils.ts

* Update sdk/servicebus/service-bus/src/util/crypto.ts

Co-authored-by: Ramya Rao <ramya.rao.a@outlook.com>

* left over un-exported items

Co-authored-by: Ramya Rao <ramya.rao.a@outlook.com>
  • Loading branch information
HarshaNalluru and ramya-rao-a committed Aug 11, 2020
1 parent f769641 commit 1a11cfb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sdk/servicebus/service-bus/src/connectionContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,20 @@ export interface ConnectionContextInternalMembers extends ConnectionContext {
}

/**
* @internal
* @ignore
* Helper type to get the names of all the functions on an object.
*/
type FunctionPropertyNames<T> = { [K in keyof T]: T[K] extends Function ? K : never }[keyof T];
/**
* @internal
* @ignore
* Helper type to get the types of all the functions on an object.
*/
type FunctionProperties<T> = Pick<T, FunctionPropertyNames<T>>;
/**
* @internal
* @ignore
* Helper type to get the types of all the functions on ConnectionContext
* and the internal methods from ConnectionContextInternalMembers.
* Note that this excludes the functions that ConnectionContext inherits.
Expand Down
6 changes: 6 additions & 0 deletions sdk/servicebus/service-bus/src/serviceBusMessageBatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,20 @@ import {
import { AmqpMessage } from "@azure/core-amqp";

/**
* @internal
* @ignore
* The amount of bytes to reserve as overhead for a small message.
*/
const smallMessageOverhead = 5;
/**
* @internal
* @ignore
* The amount of bytes to reserve as overhead for a large message.
*/
const largeMessageOverhead = 8;
/**
* @internal
* @ignore
* The maximum number of bytes that a message may be to be considered small.
*/
const smallMessageMaxBytes = 255;
Expand Down

0 comments on commit 1a11cfb

Please sign in to comment.