drimion 0.1.3 → 0.1.5
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/cli/index.js
CHANGED
|
@@ -219,7 +219,7 @@ function resolvePackageManager() {
|
|
|
219
219
|
if (true) {
|
|
220
220
|
return {
|
|
221
221
|
__PKG_NAME__: "drimion",
|
|
222
|
-
__PKG_VERSION__: "0.1.
|
|
222
|
+
__PKG_VERSION__: "0.1.5",
|
|
223
223
|
__PKG_REPOSITORY__: "git+https://github.com/bramadl/drimion.git"
|
|
224
224
|
};
|
|
225
225
|
}
|
|
@@ -803,7 +803,7 @@ function isCancelled2(err) {
|
|
|
803
803
|
}
|
|
804
804
|
function resolveKernelSource() {
|
|
805
805
|
const __dirname = path6.dirname(fileURLToPath3(import.meta.url));
|
|
806
|
-
return path6.resolve(__dirname, "..", "
|
|
806
|
+
return path6.resolve(__dirname, "..", "kernel");
|
|
807
807
|
}
|
|
808
808
|
async function readInstalledVersion(kernelPath) {
|
|
809
809
|
const versionFile = path6.join(kernelPath, ".version");
|
|
@@ -1,17 +1,24 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { IResult, IUseCase } from "{{importAlias}}";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
// define input
|
|
3
|
+
export type {{className}}Input = {
|
|
4
|
+
// define input - use never if no input needed
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
// define output
|
|
7
|
+
export type {{className}}Output = {
|
|
8
|
+
// define output - use never if no output needed
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
// define
|
|
11
|
+
export type {{className}}Metadata = {
|
|
12
|
+
// define metadata - use never if no input needed or `AnyObject` for empty object
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
/**
|
|
16
|
+
* @note
|
|
17
|
+
* In order to avoid this TS error:
|
|
18
|
+
* `A class can only implement an object type or intersection of object types with statically known members`.
|
|
19
|
+
*
|
|
20
|
+
* Decide wether you want to use `IQuery` or `ICommand` then change the `IUseCase` usage into one of them.
|
|
21
|
+
*/
|
|
15
22
|
export class {{className}} implements IUseCase<{{className}}Input, {{className}}Output> {
|
|
16
23
|
async execute(input: {{className}}Input): Promise<IResult<{{className}}Output, {{className}}Metadata>> {
|
|
17
24
|
// implement use case
|