ts-graphviz 1.8.1-dev.286226f24 → 1.8.1-dev.bfe23b71f
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/common/index.d.ts +2 -2
- package/lib/core/index.d.ts +2 -2
- package/package.json +1 -1
package/lib/common/index.d.ts
CHANGED
|
@@ -4393,9 +4393,9 @@ interface Attributes<T extends AttributeKey> {
|
|
|
4393
4393
|
*
|
|
4394
4394
|
* If the value corresponding to the key does not exist, undefined is returned.
|
|
4395
4395
|
*/
|
|
4396
|
-
get(key:
|
|
4396
|
+
get<K extends T>(key: K): Attribute<K> | undefined;
|
|
4397
4397
|
/** Set a value, by specifying the key of the attributes in the DOT object. */
|
|
4398
|
-
set(key:
|
|
4398
|
+
set<K extends T>(key: K, value: Attribute<K>): void;
|
|
4399
4399
|
/**
|
|
4400
4400
|
* Apply keys and values that can be specified for DOT objects collectively.
|
|
4401
4401
|
*
|
package/lib/core/index.d.ts
CHANGED
|
@@ -57,8 +57,8 @@ declare abstract class AttributesBase<T extends AttributeKey> extends DotObject
|
|
|
57
57
|
constructor(attributes?: AttributesObject<T>);
|
|
58
58
|
get values(): ReadonlyArray<[T, Attribute<T>]>;
|
|
59
59
|
get size(): number;
|
|
60
|
-
get(key:
|
|
61
|
-
set(key:
|
|
60
|
+
get<K extends T>(key: K): Attribute<K> | undefined;
|
|
61
|
+
set<K extends T>(key: K, value: Attribute<K>): void;
|
|
62
62
|
delete(key: T): void;
|
|
63
63
|
apply(attributes: AttributesObject<T> | AttributesEntities<T>): void;
|
|
64
64
|
clear(): void;
|
package/package.json
CHANGED