Skip to main content
Version: v2

ReadonlyMapInlined Interface

Copy of TypeScript's ReadonlyMap, but with TreeNodeFromImplicitAllowedTypesUnsafe<T> inlined into it. Using this instead of ReadonlyMap in TreeMapNodeUnsafe is necessary to make recursive map schema not generate compile errors in the d.ts files when exported.

This API is reserved for internal system use and should not be imported directly. It may change at any time without notice.

For more information about our API support guarantees, see here.

Sealed

This type is "sealed," meaning that code outside of the library defining it should not implement or extend it. Future versions of this type may add members or make typing of readonly members more specific.

Signature​

/** @sealed */
interface ReadonlyMapInlined<K, T extends ImplicitAllowedTypesUnsafe>

Type Parameters​

ParameterConstraintDescription
K
TImplicitAllowedTypesUnsafe

Remarks​

Do not use this type directly: it's only needed in the implementation of generic logic which define recursive schema, not when using recursive schema.

Properties​

PropertyModifiersTypeDescription
sizereadonlynumber

Methods​

MethodReturn TypeDescription
[Symbol.iterator]()IterableIterator<[K, TreeNodeFromImplicitAllowedTypesUnsafe<T>]>Returns an iterable of entries in the map.
entries()IterableIterator<[K, TreeNodeFromImplicitAllowedTypesUnsafe<T>]>Returns an iterable of key, value pairs for every entry in the map.
forEach(callbackfn, thisArg)void
get(key)TreeNodeFromImplicitAllowedTypesUnsafe<T> | undefined
has(key)boolean
keys()IterableIterator<K>Returns an iterable of keys in the map
values()IterableIterator<TreeNodeFromImplicitAllowedTypesUnsafe<T>>Returns an iterable of values in the map

Property Details​

size​

This API is reserved for internal system use and should not be imported directly. It may change at any time without notice.

For more information about our API support guarantees, see here.

Signature​

readonly size: number;

Type: number

Method Details​

[Symbol.iterator]​

Returns an iterable of entries in the map.

This API is reserved for internal system use and should not be imported directly. It may change at any time without notice.

For more information about our API support guarantees, see here.

Signature​

[Symbol.iterator](): IterableIterator<[K, TreeNodeFromImplicitAllowedTypesUnsafe<T>]>;

Returns​

Return type: IterableIterator<[K, TreeNodeFromImplicitAllowedTypesUnsafe<T>]>

entries​

Returns an iterable of key, value pairs for every entry in the map.

This API is reserved for internal system use and should not be imported directly. It may change at any time without notice.

For more information about our API support guarantees, see here.

Signature​

entries(): IterableIterator<[K, TreeNodeFromImplicitAllowedTypesUnsafe<T>]>;

Returns​

Return type: IterableIterator<[K, TreeNodeFromImplicitAllowedTypesUnsafe<T>]>

forEach​

This API is reserved for internal system use and should not be imported directly. It may change at any time without notice.

For more information about our API support guarantees, see here.

Signature​

forEach(callbackfn: (value: TreeNodeFromImplicitAllowedTypesUnsafe<T>, key: K, map: ReadonlyMap<K, TreeNodeFromImplicitAllowedTypesUnsafe<T>>) => void, thisArg?: any): void;

Parameters​

ParameterModifiersTypeDescription
callbackfn(value: TreeNodeFromImplicitAllowedTypesUnsafe<T>, key: K, map: ReadonlyMap<K, TreeNodeFromImplicitAllowedTypesUnsafe<T>>) => void
thisArgoptionalany

get​

This API is reserved for internal system use and should not be imported directly. It may change at any time without notice.

For more information about our API support guarantees, see here.

Signature​

get(key: K): TreeNodeFromImplicitAllowedTypesUnsafe<T> | undefined;

Parameters​

ParameterTypeDescription
keyK

Returns​

Return type: TreeNodeFromImplicitAllowedTypesUnsafe<T> | undefined

has​

This API is reserved for internal system use and should not be imported directly. It may change at any time without notice.

For more information about our API support guarantees, see here.

Signature​

has(key: K): boolean;

Parameters​

ParameterTypeDescription
keyK

Returns​

Return type: boolean

keys​

Returns an iterable of keys in the map

This API is reserved for internal system use and should not be imported directly. It may change at any time without notice.

For more information about our API support guarantees, see here.

Signature​

keys(): IterableIterator<K>;

Returns​

Return type: IterableIterator<K>

values​

Returns an iterable of values in the map

This API is reserved for internal system use and should not be imported directly. It may change at any time without notice.

For more information about our API support guarantees, see here.

Signature​

values(): IterableIterator<TreeNodeFromImplicitAllowedTypesUnsafe<T>>;

Returns​

Return type: IterableIterator<TreeNodeFromImplicitAllowedTypesUnsafe<T>>