Skip to content

Commit

Permalink
remove union with null for return type. eslint was saying unknown tru…
Browse files Browse the repository at this point in the history
…mps all other type designations anyway so it was pointless.
  • Loading branch information
philfuster committed Apr 18, 2024
1 parent 30b1e97 commit 3143131
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dataTransformers/StringDataTransformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class StringDataTransformer implements DataTransformer {
/** Transform mv string to js string */
public transformFromDb(value: null): null;
public transformFromDb(value: unknown): string;
public transformFromDb(value: unknown): unknown | null {
public transformFromDb(value: unknown): unknown {
if (value == null) {
// if this property has an enumeration constraint and one of those constraints is empty string then return empty string;
// otherwise return null
Expand Down

0 comments on commit 3143131

Please sign in to comment.