Skip to content

Commit

Permalink
Fixed signature
Browse files Browse the repository at this point in the history
Co-authored-by: Stanislav Lukeš <exyi@outlook.cz>
  • Loading branch information
acizmarik and exyi committed May 12, 2021
1 parent 4f8b6fc commit 085bc18
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function getEnumMetadata(enumMetadataId: string): EnumTypeMetadata {
return metadata as EnumTypeMetadata;
}

export function getEnumValue(identifier: string | number, enumMetadataId: string): number | null {
export function getEnumValue(identifier: string | number, enumMetadataId: string): number | undefined {
let metadata = getEnumMetadata(enumMetadataId);
if (typeof identifier === "string") {
return metadata.values[identifier];
Expand Down

0 comments on commit 085bc18

Please sign in to comment.