Skip to content

Commit b95a885

Browse files
edbznvmasek
authored andcommitted
refactor: use method signature
1 parent 8866fc1 commit b95a885

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helper.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export function guardOptional({
9595
name: string;
9696
isRequired?: boolean;
9797
nullable?: boolean;
98-
guard: (name: string) => string;
98+
guard(name: string): string;
9999
}): string {
100100
const guards = [
101101
...(isRequired ? [] : [`typeof ${name} === 'undefined'`]),

0 commit comments

Comments
 (0)