Skip to content

Commit

Permalink
fix(serverless): fix serverless typings
Browse files Browse the repository at this point in the history
  • Loading branch information
floydspace committed Jan 10, 2021
1 parent 7c81dcd commit 9d559ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"@types/jest": "^26.0.14",
"@types/node": "^12.12.38",
"@types/ramda": "^0.27.6",
"@types/serverless": "^1.78.12",
"@types/serverless": "^1.78.18",
"@typescript-eslint/eslint-plugin": "^4.2.0",
"@typescript-eslint/parser": "^4.2.0",
"eslint": "^7.9.0",
Expand Down
9 changes: 1 addition & 8 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import * as path from 'path';
import { mergeRight } from 'ramda';
import * as Serverless from 'serverless';
import * as Plugin from 'serverless/classes/Plugin';
import * as Service from 'serverless/classes/Service';
import * as chokidar from 'chokidar';

import { extractFileNames } from './helper';
Expand All @@ -14,12 +13,6 @@ import { packExternalModules } from './pack-externals';
const SERVERLESS_FOLDER = '.serverless';
const BUILD_FOLDER = '.build';

interface ServiceExtended extends Service {
service?: string;
package?: Serverless.Package;
functions?: Record<string, Serverless.FunctionDefinition>;
}

interface OptionsExtended extends Serverless.Options {
verbose?: boolean;
}
Expand Down Expand Up @@ -51,7 +44,7 @@ const DEFAULT_BUILD_OPTIONS: Partial<Configuration> = {
export class EsbuildPlugin implements Plugin {
private originalServicePath: string;

serverless: Serverless & { service: ServiceExtended };
serverless: Serverless;
options: OptionsExtended;
hooks: Plugin.Hooks;
buildOptions: Configuration;
Expand Down

0 comments on commit 9d559ee

Please sign in to comment.