Skip to content

Commit 3470a3d

Browse files
committed
Update using latest linting
1 parent 88e6faf commit 3470a3d

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/__tests__/logging.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ export default {
1212
},
1313

1414
writeText: console.log,
15-
progress: ({
15+
progress: {
1616
get: () => {
1717
// empty function
1818
},
1919
create: () => {
2020
// empty function
2121
},
22-
} as unknown) as Logging['progress'],
22+
} as unknown as Logging['progress'],
2323
} as Logging;

src/types.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ interface StateType {
5252
Type: string;
5353
}
5454

55-
export const isType = (type: string) => <T extends StateType>(state: State | T): state is T => state.Type === type;
55+
export const isType =
56+
(type: string) =>
57+
<T extends StateType>(state: State | T): state is T =>
58+
state.Type === type;
5659

5760
export const definitionIsHandler = (
5861
value: Maybe<Serverless.FunctionDefinitionHandler | Serverless.FunctionDefinitionImage>

0 commit comments

Comments
 (0)