Skip to content

Commit 24bae6d

Browse files
committed
chore: adding null check when reading types
Signed-off-by: Pawel Psztyc <[email protected]>
1 parent 387d3ac commit 24bae6d

File tree

8 files changed

+89
-64
lines changed

8 files changed

+89
-64
lines changed

package-lock.json

Lines changed: 18 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@api-components/amf-helper-mixin",
33
"description": "A mixin with common functions user by most AMF components to compute AMF values",
4-
"version": "4.5.15",
4+
"version": "4.5.16",
55
"license": "Apache-2.0",
66
"main": "index.js",
77
"module": "index.js",
@@ -32,7 +32,7 @@
3232
"@api-components/api-model-generator": "^0.2.14",
3333
"@open-wc/eslint-config": "^4.3.0",
3434
"@open-wc/testing": "^2.5.33",
35-
"@web/dev-server": "^0.1.24",
35+
"@web/dev-server": "^0.1.25",
3636
"@web/test-runner": "^0.13.18",
3737
"@web/test-runner-playwright": "^0.8.8",
3838
"eslint": "^7.32.0",

src/AmfSerializer.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ export declare class AmfSerializer extends AmfHelperMixin(Object) {
2929
* @param graph Optional AMF generated graph model.
3030
*/
3131
constructor(graph?: DomainElement);
32+
/**
33+
* @param types THe list of graph object types. When not defined it returns an empty array.
34+
* @returns The expanded types.
35+
*/
36+
readTypes(types: string[]): string[];
3237
/**
3338
* @param object The API to serialize.
3439
* @returns API summary, without complex objects.

0 commit comments

Comments
 (0)