Skip to content

Commit

Permalink
build: fix typing causing build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
floydspace committed Oct 24, 2021
1 parent 83d758a commit 5021613
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import * as pMap from 'p-map';
import { concat, always, memoizeWith, mergeRight } from 'ramda';
import * as Serverless from 'serverless';
import * as ServerlessPlugin from 'serverless/classes/Plugin';
import * as Service from 'serverless/classes/Service';
import * as chokidar from 'chokidar';

import { extractFileNames, providerRuntimeMatcher } from './helper';
Expand Down Expand Up @@ -168,7 +169,7 @@ export class EsbuildServerlessPlugin implements ServerlessPlugin {
}

get functions(): Record<string, Serverless.FunctionDefinitionHandler> {
let functions: typeof this.serverless.service.functions;
let functions: Service['functions'];
if (this.options.function) {
functions = {
[this.options.function]: this.serverless.service.getFunction(this.options.function),
Expand Down

0 comments on commit 5021613

Please sign in to comment.