@awsless/awsless 0.0.32 → 0.0.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.cjs +3 -3
- package/dist/bin.js +3 -3
- package/dist/index.d.ts +7 -3
- package/package.json +1 -1
package/dist/bin.cjs
CHANGED
|
@@ -1186,14 +1186,14 @@ ${imports.join("\n")}
|
|
|
1186
1186
|
|
|
1187
1187
|
import { InvokeOptions } from '@awsless/lambda'
|
|
1188
1188
|
|
|
1189
|
-
type
|
|
1189
|
+
type Options = Omit<InvokeOptions, 'name' | 'payload'>
|
|
1190
1190
|
|
|
1191
1191
|
type Invoke<Func extends (...args: any[]) => any> = {
|
|
1192
|
-
(event: Parameters<Func>[0], options?:
|
|
1192
|
+
(event: Parameters<Func>[0], options?: Options): ReturnType<Func>
|
|
1193
1193
|
}
|
|
1194
1194
|
|
|
1195
1195
|
declare module '@awsless/awsless' {
|
|
1196
|
-
interface
|
|
1196
|
+
interface FunctionResources {
|
|
1197
1197
|
${props.join("\n")}
|
|
1198
1198
|
}
|
|
1199
1199
|
}`
|
package/dist/bin.js
CHANGED
|
@@ -1163,14 +1163,14 @@ ${imports.join("\n")}
|
|
|
1163
1163
|
|
|
1164
1164
|
import { InvokeOptions } from '@awsless/lambda'
|
|
1165
1165
|
|
|
1166
|
-
type
|
|
1166
|
+
type Options = Omit<InvokeOptions, 'name' | 'payload'>
|
|
1167
1167
|
|
|
1168
1168
|
type Invoke<Func extends (...args: any[]) => any> = {
|
|
1169
|
-
(event: Parameters<Func>[0], options?:
|
|
1169
|
+
(event: Parameters<Func>[0], options?: Options): ReturnType<Func>
|
|
1170
1170
|
}
|
|
1171
1171
|
|
|
1172
1172
|
declare module '@awsless/awsless' {
|
|
1173
|
-
interface
|
|
1173
|
+
interface FunctionResources {
|
|
1174
1174
|
${props.join("\n")}
|
|
1175
1175
|
}
|
|
1176
1176
|
}`
|
package/dist/index.d.ts
CHANGED
|
@@ -2483,10 +2483,14 @@ declare const getCacheProps: (name: string, stack?: "stack") => {
|
|
|
2483
2483
|
};
|
|
2484
2484
|
|
|
2485
2485
|
declare const getFunctionName: <S extends string, N extends string>(stack: S, name: N) => `app--${S}--${N}`;
|
|
2486
|
-
|
|
2486
|
+
interface FunctionResources {
|
|
2487
|
+
}
|
|
2488
|
+
declare const Function: FunctionResources;
|
|
2487
2489
|
|
|
2488
2490
|
declare const getTableName: <N extends string, S extends string = "stack">(name: N, stack?: S) => `app--${S}--${N}`;
|
|
2489
|
-
|
|
2491
|
+
interface TableResources {
|
|
2492
|
+
}
|
|
2493
|
+
declare const Table: TableResources;
|
|
2490
2494
|
|
|
2491
2495
|
type AppConfig = CombinedDefaultPluginsConfigInput;
|
|
2492
2496
|
type StackConfig = CombinedDefaultPluginsConfigInput['stacks'][number];
|
|
@@ -2706,4 +2710,4 @@ declare const defineStackConfig: (config: StackConfig) => StackConfig$1 | (Stack
|
|
|
2706
2710
|
});
|
|
2707
2711
|
declare const defineAppConfig: (config: AppConfig | AppConfigFactory<AppConfig>) => CombinedDefaultPluginsConfigInput | AppConfigFactory<CombinedDefaultPluginsConfigInput>;
|
|
2708
2712
|
|
|
2709
|
-
export { AppConfig, Function, Plugin, StackConfig, Table, defineAppConfig, definePlugin, defineStackConfig, getCacheProps, getFunctionName, getGlobalResourceName, getLocalResourceName, getQueueName, getSearchName, getSecretName, getStoreName, getTableName, getTopicName };
|
|
2713
|
+
export { AppConfig, Function, FunctionResources, Plugin, StackConfig, Table, defineAppConfig, definePlugin, defineStackConfig, getCacheProps, getFunctionName, getGlobalResourceName, getLocalResourceName, getQueueName, getSearchName, getSecretName, getStoreName, getTableName, getTopicName };
|