@kitchenshelf/serverless-rspack
Version:
[Serverless Framework](https://www.serverless.com) plugin for zero-config JavaScript and TypeScript code bundling using the high performance Rust-based JavaScript bundler [`rspack`](https://rspack.dev/guide/start/introduction)
18 lines (17 loc) • 822 B
TypeScript
import type { FunctionDefinitionHandler } from 'serverless';
export declare const humanSize: (size: number) => string;
/**
* Checks if the runtime for the given function is nodejs.
* If the runtime is not set , checks the global runtime.
* @param {FunctionDefinitionHandler} func the function to be checked
* @returns {boolean} true if the function/global runtime is nodejs; false, otherwise
*/
export declare function isNodeFunction(func: FunctionDefinitionHandler, providerRuntime: string | undefined): boolean;
export declare function determineFileParts(handlerFile: string): {
filePath: string;
fileName: string;
};
export declare function enabledViaSimpleConfig(field: unknown): field is boolean;
export declare function enabledViaConfigObject<T extends {
enable?: boolean;
}>(field: T): field is T;