We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a70ae67 commit f5988e7Copy full SHA for f5988e7
src/types.ts
@@ -52,10 +52,7 @@ interface StateType {
52
Type: string;
53
}
54
55
-export const isType =
56
- (type: string) =>
57
- <T extends StateType>(state: State | T): state is T =>
58
- state.Type === type;
+export const isType = (type: string) => <T extends StateType>(state: State | T): state is T => state.Type === type;
59
60
export const definitionIsHandler = (
61
value: Maybe<Serverless.FunctionDefinitionHandler | Serverless.FunctionDefinitionImage>
0 commit comments